Configure method to allow phpMyAdmin null password login _php tips

Source: Internet
Author: User
Tags phpmyadmin
This is because the default phpmyadmin null password login is prohibited, if you want to phpmyadmin empty password allow login, you need to modify phpMyAdmin related configuration.

In the phpmyadmin3 installation configuration diagram tutorial, I introduced the phpMyAdmin installation and configuration, as to modify the phpMyAdmin login password interface, I in the MySQL modify the root password command and method has been told, If you want to allow phpMyAdmin to log in with an empty password, modify the libraries/config.default.php configuration file (if you are config.inc.php with the root directory to install phpMyAdmin, please check together).

The default phpMyAdmin null password login is prohibited, which is mainly controlled by two global variables in the configuration file libraries/config.default.php, namely

Copy Code code as follows:

$cfg [' Servers '] [$i] [' nopassword '] = false;
$cfg [' Servers '] [$i] [' allownopassword '] = false;


As long as you modify these two variables, set to True,phpmyadmin will allow the null password to log in, that is, modify the libraries/config.default.php in the

Copy Code code as follows:

$cfg [' Servers '] [$i] [' nopassword '] = true;
$cfg [' Servers '] [$i] [' allownopassword '] = true;


At the same time will

Copy Code code as follows:

$cfg [' Servers '] [$i] [' password '] = ';

The Set database connection password is set to a blank password, which is successful.

Attention matters

1, when allowing phpmyadmin null password login, often only modify

Copy Code code as follows:

$cfg [' Servers '] [$i] [' allownopassword '] = true;

This is wrong, empty password login phpMyAdmin still cannot login, must above three configuration variables are modified.

2, After modifying the phpMyAdmin profile config.default.php, login again with a blank password phpMyAdmin sometimes still unable to log in, this is because of the cookie cause, you need to close the original phpMyAdmin login window, reopen a new window, this time code log There's no problem with the recording.

This allows phpMyAdmin to log on as a blank password configuration method is finished, as long as you study phpMyAdmin configuration file config.default.php, there will be a lot of harvest, can also help you solve a lot of problems.

In MySQL to modify the root password of the command and method, I mentioned the use of phpMyAdmin to modify the MySQL root password method, but when you set the phpMyAdmin login password to a blank password, Although you can enter MySQL with an empty password via the MySQL command-line, you cannot log in phpMyAdmin when you re-enter the blank password, because the default phpmyadmin null password login is prohibited, and if you want to phpmyadmin the null password to allow logon, You will need to modify the phpMyAdmin related configuration.

In the phpmyadmin3 installation configuration diagram tutorial, I introduced the phpMyAdmin installation and configuration, as to modify the phpMyAdmin login password interface, I in the MySQL modify the root password command and method has been told, If you want to allow phpMyAdmin to log in with an empty password, modify the libraries/config.default.php configuration file (if you are config.inc.php with the root directory to install phpMyAdmin, please check together).

The default phpMyAdmin null password login is prohibited, which is mainly controlled by two global variables in the configuration file libraries/config.default.php, namely

Copy Code code as follows:

$cfg [' Servers '] [$i] [' nopassword '] = false;
$cfg [' Servers '] [$i] [' allownopassword '] = false;


As long as you modify these two variables, set to True,phpmyadmin will allow the null password to log in, that is, modify the libraries/config.default.php in the
Copy Code code as follows:

$cfg [' Servers '] [$i] [' nopassword '] = true;
$cfg [' Servers '] [$i] [' allownopassword '] = true;

At the same time will

Copy Code code as follows:

$cfg [' Servers '] [$i] [' password '] = ';

The Set database connection password is set to a blank password, which is successful.

Attention matters

1, when allowing phpmyadmin null password login, often only modify

$cfg [' Servers '] [$i] [' allownopassword '] = true;

This is wrong, empty password login phpMyAdmin still cannot login, must above three configuration variables are modified.

2, After modifying the phpMyAdmin profile config.default.php, login again with a blank password phpMyAdmin sometimes still unable to log in, this is because of the cookie cause, you need to close the original phpMyAdmin login window, reopen a new window, this time code log There's no problem with the recording.

This allows phpMyAdmin to log on as a blank password configuration method is finished, as long as you study phpMyAdmin configuration file config.default.php, there will be a lot of harvest, can also help you solve a lot of problems.

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.