What should the file owner and group /usr/local/mysql and all contained files and directories have? MySQL worked fine, but after I did sudo chown -R $USER:staff /usr/local to install Homebrew , MySQL could not start automatically at startup and in MySQL Settings Panel, I got a "Warning: directory / usr / local / mysql / data does not belong to the user "mysql" or "_mysql", and when I clicked the "Start MySQL Server" button, it did not connect.
To fix this, I ran sudo chown -R _mysql:wheel /usr/local/mysql/data . Then I closed and opened System Preferences. The warning disappeared, and when I clicked the "Start MySQL Server" button, it started!
MySQL seems to be responding fine now, but I just figured out this solution. What did i do right?
mysql file-ownership macos
ma11hew28 Jan 21 '11 at 18:42 2011-01-21 18:42
source share