在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/

问题解决!

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-12-12
  • 2021-09-20
  • 2021-07-22
  • 2021-12-02
猜你喜欢
  • 2022-12-23
  • 2021-05-16
  • 2021-07-10
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案