1、停止mysql服务(以管理员身份,在cmd命令行下运行)

net stop mysql

2、使用命令启动mysql数据库,跳过权限验证

mysqld -nt --skip-grant-tables
net stop mysql

3、登录,重置密码

mysql -uroot
update mysql.user set password=password('密码') where user='root';

 4、刷新权限,重启

 

flush privileges;
net start mysql

如遇到问题参考:http://www.cnblogs.com/zf2011/archive/2012/03/13/2393387.html

相关文章:

  • 2021-09-10
  • 2022-02-07
  • 2021-07-29
  • 2021-08-18
猜你喜欢
  • 2021-09-27
  • 2021-10-24
  • 2021-07-10
  • 2021-09-09
  • 2021-10-09
  • 2021-05-23
  • 2021-11-22
  • 2021-08-05
相关资源
相似解决方案