Skip to content

Instantly share code, notes, and snippets.

@iqiancheng
Forked from mogetutu/osx_mysql_ownership_fix
Created March 20, 2017 09:25
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save iqiancheng/4e71852f0f00202b64adaee990fcb784 to your computer and use it in GitHub Desktop.
Save iqiancheng/4e71852f0f00202b64adaee990fcb784 to your computer and use it in GitHub Desktop.
'warning the user/local/mysql/data directory is not owned by the mysql user', you have to:
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment