简体   繁体   English

在MacOs中迁移助手后,Mysql Server无法启动

[英]Mysql Server not start after Migration Assistant in MacOs

I Used Migration Assistant from ios to put my things in another mac. 我使用ios的Migration Assistant将我的东西放在另一个mac中。 But, after that, my MySQL Server does not run! 但是,在那之后,我的MySQL服务器不运行!

In System Preferences, my computer say: 在系统偏好设置中,我的电脑说:

the mysql server instance is not running

Whats happing? 是什么?

I try this: 我试试这个:

brew services start mysql@5.7

And receive: 并收到:

Error: Formula `mysql@5.7` is not installed.

I do not know why, but my system automatically renamed the MySQL directory during the migration process. 我不知道为什么,但我的系统在迁移过程中自动重命名了MySQL目录。

I identified that the usr/local/mysql/ directory was now called usr/local/mysql-5.7.21-macos10.13-x86_64/ 我发现usr / local / mysql /目录现在叫做usr / local / mysql-5.7.21-macos10.13-x86_64 /

What I did that solved the problem, was to create a symbolic link 我所做的解决了这个问题的方法是创建一个符号链接

sudo ln -s mysql-5.7.21-macos10.13-x86_64 mysql

I rebooted my mac, and everything worked correctly. 我重新启动了我的mac,一切正常。

you will probably need to identify the new directory name with the command 您可能需要使用该命令识别新目录名称

ls usr/local

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM