使用MySQL 查找 unix_socket 位置
mysql -u homestead -p
mysql> show variables like '%sock%';+-----------------------------------------+-----------------------------+| Variable_name | Value |+-----------------------------------------+-----------------------------+| performance_schema_max_socket_classes | 10 || performance_schema_max_socket_instances | 322 || socket | /var/run/mysqld/mysqld.sock |+-----------------------------------------+-----------------------------+3 rows in set (0.00 sec)
然后我去 config / database.php
我更新此行:
'unix_socket' => '/tmp/mysql.sock',
至 :
'unix_socket' => '/var/run/mysqld/mysqld.sock',
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)