1. How to Set automatic phpMyAdmin logon?
First, find config in the root directory. sample. inc. copy a file name in php and change it to config. inc. php (if config. inc. php file, you can directly modify the file ).
Open config. inc. php and find $ cfg ['servers'] [$ I] ['auth _ type '].
Copy codeThe Code is as follows: $ cfg ['servers'] [$ I] ['auth _ type'] = 'cooker ';
Change
Copy codeThe Code is as follows: $ cfg ['servers'] [$ I] ['auth _ type'] = 'config ';
Then add the following code below:
Copy codeThe Code is as follows: $ cfg ['servers'] [$ I] ['user'] = 'root'; // set the mysql user name
$ Cfg ['servers'] [$ I] ['Password'] = '000000'; // set the mysql password.
2. How to cancel Automatic phpMyAdmin logon?
You only need
Copy codeThe Code is as follows: $ cfg ['servers'] [$ I] ['auth _ type'] = 'config ';
Change
Copy codeThe Code is as follows: $ cfg ['servers'] [$ I] ['auth _ type'] = 'cooker ';
Save it.
Tip:
$ Cfg ['servers'] [$ I] ['auth _ type'] has three optional values: cookie, http, and config. Cookie and config are mostly used. When using cookies in the official environment, users must enter the correct user name and password. when testing the server locally, the user name and password must be entered after the session becomes invalid to save development time.