Mysql 修改root密码
2017-12-05 本文已影响0人
just_a_name
set password for 用户名@localhost = password('新密码');
or
use mysql;
update user set password=password('123') where user='root' and host='localhost';
flush privileges;
set password for 用户名@localhost = password('新密码');
or
use mysql;
update user set password=password('123') where user='root' and host='localhost';
flush privileges;