Set phpMyAdmin in PHP to set the logon Password

Source: Internet
Author: User
Tags http authentication

PhpMyAdmin is directly connected to MYSQL, so security is critical. Some friends do not set a logon password for phpMyAdmin for convenience. This is very dangerous. If this address is known to others, then your MYSQL is complete. Therefore, for the sake of security, we still need to set a password for phpMyAdmin. In general, this password is consistent with the MYSQL password. By default, phpMyAdmin does not enable the function of re-entering login. We can enable this function using the following code:

Open config. inc. php In the phpMyAdmin root directory and modify it as follows:

1 $ login servers [$ I] ['auth _ type'] = 'cooker ';

There are three types of parameters here. cookie is one of them, and there are two parameters: config and http. config means: According to the password in the configuration file (that is, the standard mode) this method is not authenticated; http: HTTP authentication; cookie: COOKIE logon authentication. If IIS + PHP is used, HTTP authentication is invalid. This function can only be used in the APACHE server environment. Generally, the COOKIE is used.

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.