Kunal GUpta
Kunal GUpta

Reputation: 93

OSX Warning the user/local/mysql/data directory is not owned by the mysql or _mysql user

I have mysql version 5.7.11 on OSX El-Capitan. I am getting this error while trying to start mysql server after restart.

Upvotes: 6

Views: 4558

Answers (1)

panchtox
panchtox

Reputation: 642

I've gone through same issue. This post worked for me. I reproduce the commands suggested there below:

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

Good luck!

Upvotes: 20

Related Questions