service mysqld stop
mysqld_safe --user=mysql --skip-grant-tables &
mysql
update mysql.user set password=password('123456') where user='root';
pkill -9 mysqld_safe
service mysql restart
mysql找回密码
最新推荐文章于 2021-12-29 10:57:06 发布
service mysqld stop
mysqld_safe --user=mysql --skip-grant-tables &
mysql
update mysql.user set password=password('123456') where user='root';
pkill -9 mysqld_safe
service mysql restart