Mac下运行mysql报错解决方案 错误提示:warning the user/local/mysql/data directory is not owned by the mysql user

运行mysql报错

错误提示:warning the user/local/mysql/data directory is not owned by the mysql user

解决方案:

打开终端,输入以下命令

sudo chown -RL root:mysql /usr/local/mysql

sudo chown -RL mysql:mysql /usr/local/mysql/data

sudo /usr/local/mysql/support-files/mysql.server start

你可能感兴趣的:(Mac下运行mysql报错解决方案 错误提示:warning the user/local/mysql/data directory is not owned by the mysql user)