一 找回mysql Root密码 ,mysql命令后要紧跟冒号
service mysqld stop
mysqld_safe –skip-grant-tables
use mysql;
update mysql.user set password=password(‘root密码’) where User=’root’;
flush privileges;
二 找回Wordpress 后台密码
service mysqld stop
mysqld_safe –skip-grant-tables
show databases;
use wordpress_db;
show tables;
desc wp_users;
select *from wp_users;
UPDATE wp_users SET user_pass = MD5(‘后台密码’) WHERE user_login =’登录用户’;