在Mac上通过brew install mysql 安装了完mysql
执行mysql.server start
报错:ERROR! The server quit without updating PID file (/usr/local/var/mysql/chenyuntekiMacBook-Air.local.pid).
nano /usr/local/var/mysql/chenyuntekiMacBook-Air.local.err
查看错误信息发现:The error means mysqld does not have the access rights to the directory
猜测是文件权限的问题
执行:chmod -R 777 /usr/local/var/mysql/
问题解决!
---------------------
作者:coderyun
来源:CSDN
原文:https://blog.csdn.net/chenyun19890626/article/details/51059412
版权声明:本文为博主原创文章,转载请附上博文链接!