This article describes how to configure phpMyAdmin to automatically log on and cancel automatic logon. For more information, see phpmyadmin.
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 '].
The code is as follows: $ cfg ['servers'] [$ I] ['auth _ type'] = 'cooker ';
Change
The code is as follows: $ cfg ['servers'] [$ I] ['auth _ type'] = 'config ';
Then add the following code below:
The 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
The code is as follows: $ cfg ['servers'] [$ I] ['auth _ type'] = 'config ';
Change
The 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.