【解决】mysql_real_connect: Can't connect to local MySQL server through socket '/tmp/mysql.sock'
清泛原创
"mysql_real_connect: Can't connect to local MySQL server through socket '/tmp/mysql.sock'"
解决方法(挨个试):
1、ln -s /run/mysql/mysql.sock /tmp/mysql.sock
2、ln -s /var/lib/mysql/mysql.sock /tmp/mysql.sock
3、service mysql restart
解决方法(挨个试):
1、ln -s /run/mysql/mysql.sock /tmp/mysql.sock
2、ln -s /var/lib/mysql/mysql.sock /tmp/mysql.sock
3、service mysql restart
上一篇:OceanBase使用libeasy原理源码分析:服务器端
下一篇:最后一页