mysql - 无法在 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)
使用密码时。
如何解决这个问题?
解决方案
推荐阅读
- linux - 微核不更新
- r - xml2 库删除节点:LOGICAL() 只能应用于“逻辑”,而不是“列表”
- excel - 仅用于子行的 Excel 数据透视表计算
- javascript - 如何创建一个带有 li 元素的 ol,这样如果我创建一个文本节点,它可以在 JS 的同一行添加有序数字
- r - R as.POSIXct 和 as.POSIXlt 4 月第一天的不同解析行为,R april 是在愚弄我吗?
- flutter - 无法在 appbar 中放置图像 Flutter web
- reactjs - 尝试更改我设置的 ReactJS 状态数组,但是当我去记录它时,它不会更新,直到我再次运行事件
- ios - 使用 sendToDevice 从 Firebase 功能发送到 iOS 设备时,如何使推送通知正常工作?
- c# - ASP.NET MVC & C#:更好的美元和美分数据输入
- amazon-web-services - AWS STS 使用案例和优势