当前位置:

Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock'

蓝飞鱼 2024-01-21 79 0

网站修改数据库连接信息后出现:Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)

搞了半天才搞定:把localhost改为127.0.0.1就可以了。好神奇!

发表评论

  • 评论列表
还没有人评论,快来抢沙发吧~