返回列表 发帖

[软件故障] ERROR 2002 (HY000): Can't connect to local MySQL server through socket...的解决

现象:
登录MySQL时,提示
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)

停止MySQL时,提示
ERROR! MySQL server PID file could not be found!

启动MySQL时,提示
Starting MySQL. ERROR! The server quit without updating PID file (/www/server/data/localhost.localdomain.pid).
touch: cannot touch `/var/lock/subsys/mysql': No space left on device

重启MySQL时,提示
ERROR! MySQL server PID file could not be found!
Starting MySQL. ERROR! The server quit without updating PID file (/www/server/data/localhost.localdomain.pid).
touch: cannot touch `/var/lock/subsys/mysql': No space left on device


解决:清空临时文件夹中的临时文件
  1. rm -rf /tmp/*.*
复制代码
  1. rm -rf /tmp/
复制代码
欢迎光临:逐梦论坛

返回列表

Powered by Discuz! 7.2   论坛QQ群:逐梦论坛群

© 2001-2021 Comsenz Inc. 鲁公网安备 37120302000001号