启动 mysql 失败 Warning:The /usr/local/mysql/data directory is not owned by the 'mysql' or '

Posted Evai

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了启动 mysql 失败 Warning:The /usr/local/mysql/data directory is not owned by the 'mysql' or '相关的知识,希望对你有一定的参考价值。

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 即可。

mac 下运行  sudo chown -R  _mysql:wheel  /usr/local/mysql/data 。

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

  -f 忽略错误信息

  -h 修复符号链接

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

  -v 显示详细的处理信息

以上是关于启动 mysql 失败 Warning:The /usr/local/mysql/data directory is not owned by the 'mysql' or '的主要内容,如果未能解决你的问题,请参考以下文章

WARNING: The host 'WeiLei' could not be looked up with resolveip.

WARNING: The host 'db01' could not be looked up with /data/mysql/bin/resolveip. This probabl

Docker的安装与启动

Mac OS 升级后MySQL无法启动的处理方法

问题总结问题行

WARNING: The host '$hostname' could not be looked up with resolveip. (转)