2018-04-19

Mac修改mysqlroot密码

打开终端

1
2
3
4
5
6
7
8
9
cd /usr/local/mysql/bin/

./mysqld_safe --skip-grant-tables &

./mysql -u root

use mysql;

update user set authentication_string='pwd' where User='root';