First, how to set phpMyAdmin automatic login?
First, locate config.sample.inc.php in the root directory to copy a file name to config.inc.php (if a config.inc.php file already exists, modify the file directly).
Open config.inc.php Find $cfg [' Servers '] [$i] [' Auth_type '], will
Copy the code as follows: $cfg [' Servers '] [$i] [' auth_type '] = ' cookie ';
Change into
Copy the code as follows: $cfg [' Servers '] [$i] [' auth_type '] = ' config ';
Then add the following code below:
Copy the code as follows: $cfg [' Servers '] [$i] [' user '] = ' root '; Set the MySQL user name
$cfg [' Servers '] [$i] [' password '] = ' 123456 '; Set the MySQL password
Second, how to cancel phpMyAdmin automatic login?
Just put
Copy the code as follows: $cfg [' Servers '] [$i] [' auth_type '] = ' config ';
Change into
Copy the code as follows: $cfg [' Servers '] [$i] [' auth_type '] = ' cookie ';
Save it.
Warm tips:
$cfg [' Servers '] [$i] [' Auth_type '] has three values to be selected, namely, cookies, HTTP, config. The more you use is the cookie and config. When in the formal environment, with the use of cookies, users must enter the correct user name and password, and in the local test server, the general use of Config, save the session after the expiration of the user name and password, in order to reduce development time.