这里是 admin 的密码丢失,id = 1,其他用户以此类推。
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
# mysql MariaDB [(none)]> show databases; +--------------------+ | Database | +--------------------+ | cacti | | information_schema | | mysql | | performance_schema | | test |
+--------------------+ 5 rows in set (0.02 sec)
MariaDB [(none)]> use cacti; Database changed MariaDB [cacti]> show tables; MariaDB [cacti]> MariaDB [cacti]> update user_auth set password=md5( "admin" ) where id = '1' ;
Query OK, 1 row affected (0.00 sec) Rows matched: 1 Changed: 1 Warnings: 0 |
注: 这里密码更改为“admin”,请自行更换。
本文转自 结束的伤感 51CTO博客,原文链接:http://blog.51cto.com/wangzhijian/2084398