【解决】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

mysql sock

分享到:
评论加载中,请稍后...
创APP如搭积木 - 创意无限,梦想即时!
回到顶部