Mac OS X的升级或其他原因可能会导致MySQL启动或开机自动运行时在MySQL操作面板上会提示“Warning:The /usr/local/mysql/data directory is not owned by the 'mysql' or '_mysql'
”,
这应该是某种情况下导致/usr/local/mysql/data的宿主发生了改变,
只需要运行“sudo chown -R mysql /usr/local/mysql/data”即可
sudo chown -R _mysql:wheel /usr/local/mysql/data