1.mac安装mysql
下载时查看电脑匹配的mysql的版本
https://zhuanlan.zhihu.com/p/37942063
https://www.cnblogs.com/macro-cheng/archive/2011/10/25/mysql-001.html
https://downloads.mysql.com/archives/community/
https://downloads.mysql.com/archives/
2.mac卸载mysql
安装版本:mysql-5.7.31-macos10.14-x86_64.dmg
https://www.jianshu.com/p/276c1271ae14
cd ~
open /usr
sudo rm /usr/local/mysql
sudo rm -rf /usr/local/mysql*
sudo rm -rf /Library/StartupItems/MySQLCOM
sudo rm -rf /Library/PreferencePanes/My*
rm -rf ~/Library/PreferencePanes/My*
sudo rm -rf /Library/Receipts/mysql*
sudo rm -rf /Library/Receipts/MySQL*
sudo rm -rf /var/db/receipts/com.mysql.*
重新打开系统便好设置,没发现mysql标志,则卸载完成。
3.mac修改mysql密码
https://www.cnblogs.com/xuyatao/p/6934334.html
4.命令行登录mysql
https://jingyan.baidu.com/article/3065b3b6468f68becff8a4e4.html
/usr/local/MySQL/bin/mysql -u root -p
5.workbench安装版本
mysql-workbench-community-8.0.13-macos-x86_64.dmg
调节面本颜色:
从深色主题修改为浅色主题:(在命令行中执行以下命令):
defaults write com.oracle.workbench.MySQLWorkbench NSRequiresAquaSystemAppearance -bool yes
从浅色主题恢复为深色主题:(仅需将上条命令中的 yes 改为 no):
defaults write com.oracle.workbench.MySQLWorkbench NSRequiresAquaSystemAppearance -bool no