博客忘记密码解决办法(typecho)
1,登陆mysql
[root@iZ280eievsyZ ~]# mysql -uroot -pEnter password: Welcome to the MySQL monitor. Commands end with ; or g.Your MySQL connection id is 2371Server version: 5.1.73 Source distributionCopyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.Oracle is a registered trademark of Oracle Corporation and/or itsaffiliates. Other names may be trademarks of their respectiveowners.Type 'help;' or 'h' for help. Type 'c' to clear the current input statement.mysql>
2,查看博客安装的表
mysql> show databases;+--------------------+| Database |+--------------------+| information_schema || mysql || test || typecho || wordpress || wp || wpdb |+--------------------+3,进入typecho
mysql> use typecho
4,查看表
mysql> select * from typecho_usersG*************************** 1. row *************************** uid: 1 name: admin password: $P$BcmnzLXUnEFSRytoIsm1RGYdsXvEP01 mail: usertzc@163.com url: http://www.linuxea.com/screenName: mark created: 1434533225 activated: 1436114094 logged: 1436083914 group: administrator authCode: 455454ee4e21355b90f4d0fb041ec56c1 row in set (0.00 sec)
5,然后用update typecho_users set password=‘你的密码’ where name='admin'
即可。