The username and password of phpMyAdmin can be viewed in the phpMyAdmin configuration file config.default.php. The database username and password configured in config.default.php is the user of phpMyAdmin. password.
The phpMyAdmin configuration file is in config.default.php under libraries. The main configuration is as follows:
Generally, if your mysql and phpmyadmin are placed on the same server, the host name Just use localhost directly
The code is as follows
$cfg['Servers'][$i]['host'] = 'localhost';
Then you need to configure the user name and password of mysql:
The code is as follows
$cfg['Servers'][$i]['user'] = 'root'; $cfg['Servers'][$i]['pass'] = *****';
Recommended learning:phpmyadmintutorial
The above is the detailed content of How to check phpMyAdmin username and password. For more information, please follow other related articles on the PHP Chinese website!