开启 关闭 重启命令
sudo /usr/local/MySQL/support-files/mysql.server start
sudo /usr/local/MySQL/support-files/mysql.server stop
sudo /usr/local/MySQL/support-files/mysql.server restart
不断重启解决方案
sudo launchctl unload -w /Library/LaunchDaemons/com.oracle.oss.mysql.mysqld.plist
The specified database user/password combination is rejected:
解决: 给数据库添加远程访问的权限
GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY '123456' WITH GRANT OPTION;
FLUSH PRIVILEGES;