Mysql中 root密码忘记处理方式
#/etc/my.conf中添加如下行
skip-grant-tables
#######################
systemctl restart mysqld
mysql -uroot
update mysql.user set authentication_string=password('root') where user='root';
flush privileges;
select Host ,User,Password, authentication_string from user;
#/etc/my.conf中添加如下行
#注释如下skip-grant-tables并重启mysqld服务后正常登录即可