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

After installing lnmp, I found mysql did not play.

$ service mysql 

Error:

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

 

Solution:

mkdir / var / lib / mysql

or

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

# Failed: find / var / lib / mysql -type f -exec touch {} \;

 

reference:

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

Published 242 original articles · won praise 95 · views 610 000 +

Guess you like

Origin blog.csdn.net/think_ycx/article/details/104045044