还在苦苦敲代码开发APP?你out啦! 试试积木搭建APP吧~

【解决】mysql_real_connect: Can't connect to local MySQL server through socket '/tmp/mysql.sock'

来源:清泛原创     2021-07-24 20:16:32    人气:     我有话说( 0 人参与)

mysql_real_connect: Can& 39;t connect to local MySQL server through socket & 39; tmp mysql sock& 39;解决方法(挨个试):1、ln -s run mysql mysql sock tmp mysql sock2、ln -s var lib mysql mysql sock tmp mysql sock3、service mysql restart

"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

注:本文为本站或本站会员原创优质内容,版权属于原作者及清泛网所有,
欢迎转载,转载时须注明版权并添加来源链接,谢谢合作! (编辑:admin)
分享到: