Starting MySQL.... ERROR! The server quit without updating PID file (/var/run/mysqld/mysqld.pid).

1.由来:暴力重启了MySQL所在服务器(正常先停MySQL服务,再重启),导致启动的时候报错Starting MySQL.... ERROR! The server quit without updating PID file (/var/run/mysqld/mysqld.pid)【即Can't start server: can't check PID filepath: No such file or directory】

2.解决:

    2.1 mkdir /var/run/mysqld

    2.2 chmod 777 /var/run/mysqld

    2.3 service mysql start

posted @ 2020-12-17 12:13  stuka  阅读(1405)  评论(0编辑  收藏  举报