Home >Database >phpMyAdmin >How to recover the forgotten database password in phpmyadmin

How to recover the forgotten database password in phpmyadmin

王林
王林Original
2020-02-14 13:27:343681browse

How to recover the forgotten database password in phpmyadmin

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn