Board logo

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

作者: shillan    时间: 2018-9-2 06:39     标题: 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/
复制代码





欢迎光临 逐梦论坛 (http://temp2023.zhumeng.org/) Powered by Discuz! 7.2