# /etc/init.d/mysql stop
# mysqld_safe --skip-grant-tables
# mysql -u root
mysql> use mysql;
mysql> update user set password=PASSWORD("new_password") where User='root';
mysql> flush privileges;
mysql> quit;
# /etc/init.d/mysql stop
# /etc/init.d/mysql start
Posted by L3UNIX to L3UNIX's deck (2016-07-25 14:39)