登录在Linux服务起中

/etc

ls -l my.cnf

 

Linux下mysql忘记root密码要如何解决

 

 

然后加入skip-grant-tables,保存,刷新,重启mysql

Linux下mysql忘记root密码要如何解决

 

 

flush privileges;
service mysqld restart;

mysql
mysql -u root

 

相关文章:

  • 2021-08-09
  • 2022-01-15
  • 2021-10-14
  • 2021-05-27
  • 2021-07-10
猜你喜欢
  • 2022-01-15
  • 2021-12-15
  • 2021-07-05
  • 2022-02-28
  • 2021-10-31
相关资源
相似解决方案