Starting MySQL. ERROR! The server quit without updating PID file(xxx/x.pid)

【1】故障信息

Starting MySQL. ERROR! The server quit without updating PID file(xxx/x.pid)

 

[ERROR] Could not create unix socket lock file /usr/local/mysql/sock/mysql.sock.lock.
2018-11-30T03:01:12.764913Z 0 [ERROR] Unable to setup unix socket lock file.
2018-11-30T03:01:12.764928Z 0 [ERROR] Aborting

 

 

【2】解决办法

比如我这里报错是:Starting MySQL. ERROR! The server quit without updating PID file (/data/mysql/mysql_3306/data/db4.pid).

一般是权限问题,给你报错的目录加个权限即可。

  chown -R mysql:mysql /data/mysql/mysql_3306

  chmod 755 -R /data/mysql/mysql_3306

这样就解决了

上一篇:工程化编程实战callback接口学习笔记


下一篇:python,finally的应用