Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我使用 ios 的 Migration Assistant 将我的东西放在另一台 Mac 上。但是,在那之后,我的 MySQL 服务器没有运行!
在系统偏好设置中,我的电脑说:
the mysql server instance is not running
发生什么事了?
我试试这个:
brew services start mysql@5.7
并收到:
Error: Formula `mysql@5.7` is not installed.
我不知道为什么,但是我的系统在迁移过程中自动重命名了 MySQL 目录。
我发现usr/local/mysql/目录现在被称为usr/local/mysql-5.7.21-macos10.13-x86_64/
我所做的解决问题的方法是创建一个符号链接
sudo ln -s mysql-5.7.21-macos10.13-x86_64 mysql
我重新启动了我的mac,一切正常。
您可能需要使用命令识别新目录名称
ls usr/local