1. 程式人生 > >mac os 安裝mysql

mac os 安裝mysql

wpa art soc pass mysq use date cal logs

1.利用brew安裝

brew install mysql

2.報錯處理

ERROR 2002 (HY000): Cant connect to local MySQL server through socket /tmp/mysql.sock (2)
mysql.server start 啟動mysql

3.更改初始密碼

mysql> UPDATE user SET Password = PASSWORD(‘newpass’) WHERE User = ‘root’;

mac os 安裝mysql