# /etc/init.d/mysql stop
#
mysqld_safe --user=mysql --skip-grant-tables --skip-networking &
#
mysql -u root mysql
mysql> UPDATE user SET Password=PASSWORD('newpassword') where USER='root';
mysql> FLUSH PRIVILEGES;
mysql> quit
# /etc/init.d/mysqld restart
#
mysql -uroot -pnewpassword


相关文章:

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