这个时候可以使用跳过密码登录:①mysql配置文件my.ini中,在[mysqld]下添加skip-grant-tables;②关闭mysql服务并重新开启;输入命令:mysql-uroot-p,回车后,要求输入密码,直接回车跳过,则直接进入mysql;③然后再修改密码,刷新即可.>updateusersetpassword=password('new-password')whereuser='root';>flushprivileges;
@insert
顶0
加入收藏
相关问答推荐