mac启动mysql失败

发布时间: 2023-11-21 11:19 阅读: 文章来源:1MUMB1151PS

安装mysql,更新mac系统后,出现

Warning:The /usr/local/mysql/data directory is not owned by ‘mysql‘ or ‘_mysql‘ user.

这个就是因为权限问题导至的,如果不想麻烦整理系统权限,可以试试简单粗爆的方法,用sudo 命令启动

1、启动mysql

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

2、停止mysql

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

3、重启mysql

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

•••展开全文