今天启动mysql 的时候没有启动起来,然后出现了一个这样的警告,我想到可是是系统升级的原因引起的,因为好久没用了,所以

The /usr/local/mysql/data directory is not owned by the 'mysql' or '_mysql'

The /usr/local/mysql/data directory is not owned by the ‘mysql‘ or ‘_mysql‘_bug
所以我只能尝试修改一下文件的所属用户组了
sudo chown -R mysql /usr/local/mysql/data
The /usr/local/mysql/data directory is not owned by the ‘mysql‘ or ‘_mysql‘_bug_02
再来启动发现就已经可以了
The /usr/local/mysql/data directory is not owned by the ‘mysql‘ or ‘_mysql‘_用户组_03