【MySQL】mysql更换root密码,全网唯一有用!
ALTER USER 'root'@'localhost' IDENTIFIED BY 'your password'; flush privileges; exit;
得解!
然后重新登陆:
mysql -u root -p
输入你修改的密码即可!
ALTER USER 'root'@'localhost' IDENTIFIED BY 'your password'; flush privileges; exit;
得解!
然后重新登陆:
mysql -u root -p
输入你修改的密码即可!