问题:

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

原因:

没有'/var/lib/mysql/mysql.sock

mysql 无法识别本地mysqld配置的端口信息及localhost

解决方案:

mysql -h127.0.0.1 -p3306 -uroot -p

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

 

相关文章:

  • 2022-01-11
  • 2021-05-21
猜你喜欢
  • 2021-10-09
  • 2021-12-22
相关资源
相似解决方案