MySQL brew无法在macOS Monterey上运行?

3
在从macOS Big Sur升级到Monterey(天真)后,MySQL突然停止工作。本地的Laravel开发环境突然失去了与MySQL的连接。由于我还在学习,无法正确调试它,因此决定通过brew进行全新的MySQL安装。之前也是通过brew安装的。
在最后一步中,mysql_secure_installation显示如下:
Error: Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)

brew services start mysql

Bootstrap failed: 5: Input/output error
Try re-running the command as root for richer errors.
Error: Failure while executing; `/bin/launchctl bootstrap gui/501 /Users/stranger/Library/LaunchAgents/homebrew.mxcl.mysql.plist` exited with 5.

我做错了什么吗?为什么会突然掉线?
谢谢!

2个回答

3

这并不是一个解决方案,但根据MySQL的文档,Monterey目前还不是受支持的平台。

MySQL受支持的平台


你的回答可以通过提供更多支持信息来改进。请编辑以添加进一步的细节,例如引用或文档,以便他人可以确认你的答案是正确的。您可以在帮助中心中找到有关如何编写良好答案的更多信息。 - Community

1
我尝试了brew uninstall mysql, brew install mysql,然后brew services restart mysql,这对我很有帮助。

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接