Solution: phpMyAdmin does not allow empty password login configuration-PHP source code

Source: Internet
Author: User
PhpMyAdmin is a WEB version management tool. Many of our sites use phpMyAdmin for development and testing environments. Sometimes we often need to enter the login password during local testing, this is very inconvenient, so how can we configure the local phpMyAdmin interface to log on without a password? Let's take a look at phpMyAdmin's failure to allow empty password login configuration methods, I hope the article will help you. PhpMyAdmin is a WEB version management tool. Many of our sites use phpMyAdmin for development and testing environments. Sometimes we often need to enter the login password during local testing, this is very inconvenient, so how can we configure the local phpMyAdmin interface to log on without a password? Let's take a look at phpMyAdmin's failure to allow empty password login configuration methods, I hope the article will help you.

Script ec (2); script

First, open config. inc. php in phpmyadmin. If the root directory does not contain config. inc. php, we will find the file librariesconfig. default. php, because the file paths may be different in different versions.

2) Open the configuration file you found, and replace the following:

The Code is as follows:

$ Cfg ['servers'] [$ I] ['allownopassword'] = false;

Changed:


$ Cfg ['servers'] [$ I] ['allownopassword'] = true;

Now we can use a blank password to log on. Of course, if you set a logon password for mysql, you still need to enter the password, then we can set the mysql user password to be empty, so that we can achieve real empty password login, of course, the server does not recommend empty password login Oh.

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.