修改wordpress密码

已经被这个问题坑了无数次了…

今天实践的一种办法

step.1 在linux上登陆mysql

mysql -h localhost -p -u wordpress

 

step.2 在mysql中可以看一下有哪些数据库,选择wordpress

mysql> show databases;
+--------------------+
| Database |
+--------------------+
| information_schema |
| wordpress |
+--------------------+
2 rows in set (0.01 sec)

 

step.3 更新用户名对应的密码

mysql> UPDATE wp_users SET user_pass = MD5('password') WHERE wp_users.user_login ='admin' LIMIT 1;

Leave a Reply

Your email address will not be published. Required fields are marked *