当前位置: 代码迷 >> 综合 >> 【Error】start Starting MySQL .. * The server quit without updating PID file (/usr/loc
  详细解决方案

【Error】start Starting MySQL .. * The server quit without updating PID file (/usr/loc

热度:95   发布时间:2024-01-26 11:11:27.0

安装lnmp之后,发现mysql没起。

$ service mysql 

报错:

Starting MySQL
.. * The server quit without updating PID file (/usr/local/mysql/var/5f6d62dfb7d8.pid).

 

解决办法:

mkdir /var/lib/mysql

touch /usr/local/mysql/var/5f6d62dfb7d8.pid

# 执行失败: find /var/lib/mysql -type f -exec touch {} \;

 

参考:

https://github.com/docker/for-linux/issues/72

  相关解决方案