这里是 admin 的密码丢失,id = 1,其他用户以此类推。
# mysqlMariaDB [(none)]> show databases;+--------------------+| Database |+--------------------+| cacti || information_schema || mysql || performance_schema || test |+--------------------+5 rows in set (0.02 sec)MariaDB [(none)]> use cacti;Database changedMariaDB [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”,请自行更换。