centOS启动mysql ($mysql -u root -p)报错:
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
解决办法: mysql -h 127.0.0.1 -u root -p
本文共 221 字,大约阅读时间需要 1 分钟。
转载于:https://blog.51cto.com/zhangxu1316/967761