PHP Settings phpMyAdmin Set login password _php tutorial

Source: Internet
Author: User
phpMyAdmin directly with MySQL, so security is very critical, some friends for the sake of convenience, there is no password for phpMyAdmin to set a login, this is very dangerous, if the address is known to others, then your MySQL is finished. So for the sake of security, we still have to set a password for the phpMyAdmin, in general, this password is consistent with the MySQL password, by default, phpMyAdmin does not open to allow login to enter the function, we can use the following code to open this feature:

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

1$cfgservers[$i] [' Auth_type ']= ' cookies ';

There are three parameters here, and the cookie is one of them, and there are two parameters, Config and http,config, which means that there is no authentication by the password in the configuration file (that is, the standard way); http: Use HTTP authentication; Cookies: Use cookies to log in to authentication. If you are using iis+php, HTTP authentication is not valid, and this feature can only be used in an Apache server environment. In general, it is the cookie method used.

http://www.bkjia.com/PHPjc/756841.html www.bkjia.com true http://www.bkjia.com/PHPjc/756841.html techarticle phpMyAdmin directly with MySQL, so the security is very critical, some friends for the sake of convenience, there is no phpMyAdmin set a login password, this is very dangerous, if this address ...

  • 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.