phpMyAdmin automatic logon and cancellation of automatic logon configuration method _php instance

Source: Internet
Author: User
Tags phpmyadmin


One, how to set up phpMyAdmin automatic login?

First find config.sample.inc.php in the root directory to copy a file name to config.inc.php (if the config.inc.php file already exists, modify the file directly).
Open config.inc.php Find $cfg [' Servers '] [$i] [' Auth_type '], will

Copy Code code as follows:
$cfg [' Servers '] [$i] [' auth_type '] = ' cookie ';

Change into
Copy Code code as follows:
$cfg [' Servers '] [$i] [' auth_type '] = ' config ';


Then append the following code below:
Copy Code code as follows:
$cfg [' Servers '] [$i] [' user '] = ' root '; MySQL User name set
$cfg [' Servers '] [$i] [' password '] = ' 123456 '; Set the MySQL password

Second, how to cancel phpMyAdmin automatic login?

Just put

Copy Code code as follows:
$cfg [' Servers '] [$i] [' auth_type '] = ' config ';

Change into
Copy Code code as follows:
$cfg [' Servers '] [$i] [' auth_type '] = ' cookie ';

can be saved.

Warm tip:
$cfg [' Servers '] [$i] [' Auth_type '] has three option values, that is, cookies, HTTP, config. The more you use are cookies and config. When in the formal environment, with cookies, users must enter the correct username and password, and in the local test server, the general use of Config, save session after the failure to enter the user name and password, in order to conserve development time.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.