不会飞的章鱼

熟能生巧,勤能补拙;念念不忘,必有回响。

Mac 安装 MySQL

brew命令安装

1
2
brew install mysql
mysql --version

问题

The server quit without updating PID file (/opt/homebrew/var/mysql/neozhangdeMacBook-Pro.local.pid)

1
2
3
4
5
sudo mysql.server start
Password:
Starting MySQL
.Logging to '/opt/homebrew/var/mysql/neozhangdeMacBook-Pro.local.err'.
ERROR! The server quit without updating PID file (/opt/homebrew/var/mysql/neozhangdeMacBook-Pro.local.pid).

解决

1
2
sudo chown -R mysql /opt/homebrew/var/mysql
sudo mysql.server restart
------ 本文结束------
如果本篇文章对你有帮助,可以给作者加个鸡腿~(*^__^*),感谢鼓励与支持!