1. Open the my.ini configuration file and find the mysqld configuration item, as follows:
[mysqld] port=3306
Add skip-grant-tables
below and then you can Skip the password input and enter the command terminal;
2. Then change the password input:
update mysql.user set password=password("新密码") where user=root;
3. After changing the password, delete the skip-grant- added in my.ini tables
will do.
Related recommendations: phpmyadmin tutorial
The above is the detailed content of How to recover the forgotten database password in phpmyadmin. For more information, please follow other related articles on the PHP Chinese website!