Search code examples
mysql

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.


Solution

  • 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!