brew卸载之前mysql
brew uninstall mysql@版本号
rm -rf /usr/local/var/mysql
rm /usr/local/etc/my.cnf
brew重新安装mysql5.6
brew install mysql@5.6
brew services start mysql@5.6
问题
mysql_secure_installation
报错 Can’t connect to local MySQL server through socket ‘/tmp/mysql.sock’ (2)
sudo mysql.server start
报错 ERROR! Couldn’t find MySQL server (/usr/local/Cellar/mysql@5.6