错误
Mac 启动 MySQL 失败
Warning:The /usr/local/mysql/data directory is not owned by the 'mysql' or '_mysql'
原因
/usr/local/mysql/data
的拥有者发生了改变,所以只需要将其拥有者修改为 mysql
就可以了。
解决
终端运行
sudo chown -R mysql /usr/local/mysql/data
Mac 启动 MySQL 失败
Warning:The /usr/local/mysql/data directory is not owned by the 'mysql' or '_mysql'
/usr/local/mysql/data
的拥有者发生了改变,所以只需要将其拥有者修改为 mysql
就可以了。
终端运行
sudo chown -R mysql /usr/local/mysql/data