Cacti找回管理员密码

这里是 admin 的密码丢失,id = 1,其他用户以此类推。

登陆mysql

# 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

 参考:cnblogs:https://www.cnblogs.com/rikcy/p/11361919.html

原文>>更多内容请访问《翼的家园》

你可能感兴趣的:(Cacti找回管理员密码)