大刘的 iOS 自学笔记

Mac mysql

2018-09-26  本文已影响4人  大刘

mac mysql 忘记密码解决方法:https://blog.csdn.net/love_dl_forever/article/details/78930488

sudo /usr/local/mysql/support-files/mysql.server stop
cd /usr/local/mysql/bin
sudo su
./mysqld_safe --skip-grant-tables &
control + D退出编辑
alias mysql=/usr/local/mysql/bin/mysql
mysql
flush privileges;
set password for 'root'@'localhost'=password('新密码');
上一篇下一篇

猜你喜欢

热点阅读