在从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.
我做错了什么吗?为什么会突然掉线?
谢谢!