The solution is very simple:
1. Overwrite the config.default.php in the /libraries directory with the config.inc.php file under phpmyadmin
2. Then modify the phpmyadmin/config.inc.php file
$cfg['PmaAbsoluteUri'] = 'http://192.168.2.129/phpmyadmin/';
$cfg[ 'Servers'][$i]['host'] = 'localhost';//(Usually the default is used, there are exceptions)
$cfg['blowfish_secret'] = ''//Change it to any character, otherwise There will be an error message when logging in. I forgot the specific number
$cfg['Servers'][$i]['auth_type'] = 'cookie';
$cfg['Servers'][$i][' user'] = 'root'; // MySQL user
$cfg['Servers'][$i]['password'] = ''; // MySQL password
PHP Chinese website, there is A large number of freephpmyadmin introductory tutorials, everyone is welcome to learn!
The above is the detailed content of Solution to why phpmyadmin cannot be opened after changing the password. For more information, please follow other related articles on the PHP Chinese website!