Home >Backend Development >PHP Tutorial >XAMPP changes the root password of mysql phpmyadmin cannot log in_PHP tutorial

XAMPP changes the root password of mysql phpmyadmin cannot log in_PHP tutorial

WBOY
WBOYOriginal
2016-07-13 10:49:101208browse

phpmyadmin is a WEB version of mysql database management tool. It can perform various operations on the mysql database, but I must configure the user name and login password in phpmyadmin. If the mysql password is changed, it will be changed in phpmyadmin. The password also needs to be changed.

The password (empty) set in xampp/phpMyAdmin/config.inc.php conflicts, making the user unable to log in (you can log in to phpmyadmin before the computer is restarted, but you cannot log in once the machine is restarted).

XAMPP changes the root password of mysql phpmyadmin cannot log in_PHP tutorial

The solution is also very simple:

1 Modify the configuration file about phpmyadmin in xampp

Enter the xampp installation directory, modify the xampp/phpMyAdmin/config.inc.php file, find and set the password to start the modification,

For example $cfg['Servers'][$i]['password'] = '8888';

XAMPP changes the root password of mysql phpmyadmin cannot log in_PHP tutorial

2 Clear the browser cache and log in again to http://127.0.0.1/phpmyadmin/

In addition, after we click "Permissions", we can see the users of the entire database as follows. We can click "Operation" to modify the user password again and modify config.inc.php accordingly.

Summary

w

In fact, this is the modification of $cfg['Servers'][$i]['password'] = '8888'; in xampp/phpMyAdmin/config.inc.php. You can also use it if you change the user name. $cfg['Servers'][$i]['user'] = 'your username'; modify it like this.

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/632734.htmlTechArticlephpmyadmin is a WEB version of mysql database management tool. It can perform various operations on the mysql database, but I The username and login password must be configured in phpmyadmin, such as...
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