Mac启动mysql提示Warring the /usr/local/mysql/data directory is not owned by the 'mysql' or '_mysql' user

/usr/local/mysql/data宿主发生改变

解决办法:终端输入sudo chown -R mysql /usr/local/mysql/data

或者

sudo chown -R  _mysql:wheel  /usr/local/mysql/data

参数说明:

-c 显示更改的部分的信息

-f 忽略错误信息

-h 修复符号链接

-R 处理指定目录以及其子目录下的所有文件

-v 显示详细的处理信息

你可能感兴趣的:(Mac启动mysql提示Warring the /usr/local/mysql/data directory is not owned by the 'mysql' or '_mysql' user)