How to set up phpMyAdmin to log in automatically?
First find config.sample.inc.php in the root directory and copy the file name and change it to config.inc.php (if the config.inc.php file already exists, just modify the file directly).
Open config.inc.php and find $cfg['Servers'][$i]['auth_type'], change
$cfg['Servers'][$i]['auth_type'] = 'cookie';
to
$cfg['Servers'][$i]['auth_type'] = 'config';
and then click below Append the following code:
$cfg['Servers'][$i]['user'] = 'root'; // 设置的mysql用户名 $cfg['Servers'][$i]['password'] = '123456'; // 设置的mysql密码
How to cancel phpMyAdmin automatic login?
Just change
$cfg['Servers'][$i]['auth_type'] = 'config';
to
$cfg['Servers'][$i]['auth_type'] = 'cookie';
and save.
Recommended related articles and tutorials: phpmyadmin tutorial
The above is the detailed content of How to set up phpmyadmin to automatically log in and cancel automatic login. For more information, please follow other related articles on the PHP Chinese website!