【MySQL】mysql更换root密码,全网唯一有用!

ALTER USER 'root'@'localhost' IDENTIFIED BY 'your password';

flush privileges;

exit;

得解!

然后重新登陆:

mysql -u root -p

输入你修改的密码即可!

posted @ 2023-04-07 12:41  Geeksongs  阅读(47)  评论(0编辑  收藏  举报

Coded by Geeksongs on Linux

All rights reserved, no one is allowed to pirate or use the document for other purposes.