好得很程序员自学网

<tfoot draggable='sEl'></tfoot>

windows下mysql忘记root忘记密码怎么找回

1、停止mysql服务:net stop mysql,或者直接结束mysqld进程。 2、在命令行窗口执行:mysqld-nt (或mysqld.exe) --skip-grant-tables,当前窗口将会停止。 以允许不输密码形式启动mysql服务。 3、再开一个命令行窗口,执行mysql -uroot,回车,接着 > use mysql > update user set password=password("new_password") where user="root"; > flush privileges; > exit 4. 在任务管理器中,终止mysqld进程,然后在重启mysql服务:net start mysql,这样就可以用新密码登录了。

查看更多关于windows下mysql忘记root忘记密码怎么找回的详细内容...

  阅读:51次