首页 > 解决方案 > 无法在 MacOS 中启动 mysql 5.7

问题描述

我使用 Homebrew 安装了 mySQL,并在没有密码的情况下使用它。但是当我再次尝试访问时,它又返回了,

mysql -u root -p
mysql: [Warning] World-writable config file '/etc/my.cnf' is ignored.
Enter password:
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)

无密码使用时。并返回

mysql -u root -p
mysql: [Warning] World-writable config file '/etc/my.cnf' is ignored.
Enter password:
ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)

使用密码时。

如何解决这个问题?

标签: mysqlmacosmysql-5.7

解决方案


推荐阅读