vi /etc/my.cnf
在[mysqld]下面增加一行
skip-grant-tables 
重启  /etc/init.d/mysqld restart

/usr/local/mysql/bin/mysql -uroot 
mysql> update user set authentication_string=password('123333') where user='root';
退出来后,更改my.cnf,去掉刚加的 skip-grant-tables
重启 /etc/init.d/mysqld restart

相关文章:

  • 2021-11-28
  • 2021-12-05
  • 2021-07-23
  • 2022-12-23
  • 2022-01-01
  • 2021-12-16
  • 2022-12-23
猜你喜欢
  • 2021-09-21
  • 2021-09-30
  • 2021-09-22
  • 2021-07-23
  • 2021-12-22
  • 2021-11-26
  • 2021-11-28
相关资源
相似解决方案