mysql root password reset
shell> vim /etc/my.cnf
加入:
skip-grant-tables
shell> mysql/support-files/mysql.server restart
shell> mysql/bin/mysql
mysql> FLUSH PRIVILEGES;
mysql> ALTER USER 'root'@'localhost' IDENTIFIED BY 'MyNewPass';
shell> vim /etc/my.cnf
删除:
skip-grant-tables
shell> mysql/support-files/mysql.server restart