Mysql 5.6.15版本的windows下的重设root密码,找了n个帖子终于弄明白了。


1. 开一个cmd窗口,进入Mysql的安装目录的bin文件夹,然后运行这个:

mysqld --skip-grant-tables


2. 再开一个cmd窗口,同样是进入mysql的bin目录,运行:
mysql -u root

3. 然后会进入mysql的提示符,再用update把root用户的密码改掉,下面这句是把密码改成6个0,完成。
update mysql.user set password=PASSWORD('000000') where User='root';

相关文章:

  • 2022-01-08
  • 2022-03-01
  • 2021-07-18
  • 2021-07-31
  • 2021-08-13
猜你喜欢
  • 2021-09-24
  • 2021-11-16
  • 2022-12-23
  • 2021-11-07
  • 2021-07-24
  • 2021-05-29
  • 2021-11-21
相关资源
相似解决方案