sunmingtao / sample-code

3 stars 4 forks source link

MacOS Can't start MySQL Server #77

Closed sunmingtao closed 4 years ago

sunmingtao commented 4 years ago

System Preferences -> MySQL -> Click 'Start MySQL server`

The button changes to 'Stop MySQL server' for a split second, then reverts to 'Start MySQL server`. The server is not started.

sunmingtao commented 4 years ago

This answer helps me https://stackoverflow.com/a/48424961/920554 I did change the owner of /usr/local folder to my username.

For the folder mysql-8.0.16-macos10.14-x86_64, the owner has to be _mysql.

sudo chown -R _mysql mysql-8.0.16-macos10.14-x86_64/