1.利用brew安装
brew install mysql
2.报错处理
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
mysql.server start 启动mysql
3.更改初始密码
set password for root@localhost = password('root');
1.利用brew安装
brew install mysql
2.报错处理
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
mysql.server start 启动mysql
3.更改初始密码
set password for root@localhost = password('root');