这里是 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
原文:https://www.cnblogs.com/ytyzhn/p/12659565.html