输入banner图图片脚本导航/分类

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

//指将名称为"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