按照资料,整理如下:
#service mysql stop
#mysqld_safe --skip-grant-tables&
#mysql --user=root mysql
mysql> update user set Password=PASSWORD('new-password-here') WHERE User='root';
mysql> flush privileges;
mysql> exit
#ps -ef|grep mysqld
#kill
#service mysql start
阅读(1482) | 评论(0) | 转发(0) |