windows10mysql密码忘了怎么办?

hswwilliam 26 0 PDF 2020-12-17 11:12:38

打开命令窗口cmd,输入命令:net stop mysql,停止MySQL服务 开启跳过密码验证登录的MySQL服务 mysqld --console --skip-grant-tables --shared-memory 再打开一个新的cmd,无密码登录MySQL,输入登录命令:mysql -u root -p 密码置为空,命令如下: use mysql update user set authentication_string='' where user='root'; quit 关闭以-console –skip-grant-tables –shared-memory 启动的My

用户评论
请输入评论内容
评分:
暂无评论