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

安装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

发布了242 篇原创文章 · 获赞 95 · 访问量 61万+

猜你喜欢

转载自blog.csdn.net/think_ycx/article/details/104045044
今日推荐