Mac OSX下提示user/local/mysql/data directory is not owned by the mysql user怎么办?

Mac OSX下提示user/local/mysql/data directory is not owned by the mysql user的解决方法

如果Mac OSX下不能启动mysql,提示user/local/mysql/data directory is not owned by the mysql user。
可以在terminal中输入以下命令解决。

sudo chown -RL root:mysql /usr/local/mysql
sudo chown -RL mysql:mysql /usr/local/mysql/data
sudo /usr/local/mysql/support-files/mysql.server start

发表回复

您的电子邮箱地址不会被公开。