首先dos下输入 mysql -u root -p 回车后会让你输入密码,输入密码后就进入了mysql>,后use mysql; update user set Password=Password('123') where Host='localhost' and User='root'; FLUSH PRIVILEGES;这两行命令在dos下一直粘贴(这是个奇怪的问题,我是这样才能成功的);注:Host='localhost' and User='root';中的Host与User都是mysql数据库里user表里的自动,大小写要对应
Host='localhost' and User='root';
最新推荐文章于 2021-07-14 11:22:29 发布