1.先停止原来的mysql进程,可以使用  来确认一下已被停止。

2. 启动 

mysqld_safe --user=mysql --skip-grant-tables --skip-networking &


 

3.重置密码

mysql> UPDATE user SET Password=PASSWORD('newpass'where USER='root';
mysql> FLUSH PRIVILEGES;
mysql> quit

 

重置后再次启动MYSQL即可!

相关文章:

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