MySQL 修改密码 忘记密码
vi /etc/my.cnf
[mysqld]
skip-grant-tables
service mysqld restart
mysql -uroot -p
use mysql
UPDATE user SET authentication_string=password('nbou_Mysql@123') WHERE User = 'root';
flush privileges ;
vi /etc/my.cnf
[mysqld]
skip-grant-tables
service mysqld restart
mysql -uroot -p
use mysql
UPDATE user SET authentication_string=password('nbou_Mysql@123') WHERE User = 'root';
flush privileges ;