How to configure automatic phpMyAdmin logon and cancel automatic logon

Source: Internet
Author: User
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.

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.