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