sudo /usr/local/mysql/support-files/mysql.server stop // 停止
sudo /usr/local/mysql/support-files/mysql.server start // 启动
sudo /usr/local/mysql/support-files/mysql.server restart // 重启
重启MySQL提示MySQL server PID file could not be found!
Starting MySQL...The server quit without updating PID file (/usr/local/mysql/data/rekfan.pid).
1.可能是/usr/local/mysql/data/rekfan.pid文件没有写的权限
解决方法 :给予权限,执行
chown -R mysql:mysql /usr/local/mysql/data
chmod -R 755 /usr/local/mysql/data
然后重新启动mysqld!
转自---
作者:Jack问
链接:https://www.jianshu.com/p/51551802a1ee
来源:简书
著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。
标签:data,sudo,server,mac,停止,usr,mysql,mysqld,local From: https://www.cnblogs.com/zhonghuahero/p/17750833.html