当前位置:Gxlcms > 数据库问题 > Windows下Mysql 用户忘记密码时修改密码

Windows下Mysql 用户忘记密码时修改密码

时间:2021-07-01 10:21:17 帮助过:13人阅读

//指将名称为"root"的用户的密码改为123456 update user set password=password("123456") where user="root";
flush privileges;

5.关闭两个窗口,重新启动mysql

sc start mysql

注意:MySQL5.7之后,重置root密码SQL为

update mysql.user set authentication_string=password(123456) where user=root;

Windows下Mysql 用户忘记密码时修改密码

标签:HERE   启动   mysql安装   账号   重置root密码   使用   star   The   style   

人气教程排行