标签:root ror 更改 user new 利用 word tmp start
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.更改初始密码
mysql> UPDATE user SET Password = PASSWORD(‘newpass’) WHERE User = ‘root’;
标签:root ror 更改 user new 利用 word tmp start
原文地址:http://www.cnblogs.com/zhoupufelix/p/7028937.html