Configuration method that allows phpmyadmin to log in with an empty password

  • 2020-05-07 19:23:16
  • OfStack

This is because the default phpmyadmin empty password login is prohibited, if you want phpmyadmin empty password to allow login, you need to change the phpmyadmin configuration.

In phpmyadmin3 installation configuration diagram tutorial 1 of this article, I introduced the phpmyadmin installation and configuration, as for the modified phpmyadmin login password interface, I in Mysql modified root password command and methods have been told that if you want to allow phpmyadmin in empty password login, will modify libraries/config default. php configuration file (if you are in the root directory config. inc. php phpmyadmin installation, please 1 and check).

Default phpmyadmin empty password is banned, the 1 behavior mainly through the configuration file libraries/config default. php two global variables in the control, namely


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


Just change the two variables, setting of True, phpmyadmin will allow login in empty password way, namely the modified libraries/config default. php


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


At the same time will


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

Set the database connection password to an empty password.

Matters needing attention

1. When you allow an phpmyadmin blank password to log in, you usually only change it


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

This is not correct, the empty password login phpmyadmin still can not login, you must change the above three configuration variables.

2. After the modification of phpmyadmin configuration file config.default.php, login phpmyadmin with an empty password is sometimes still unable to login. This is caused by cookie.

That's all for the configuration method that allows phpmyadmin to log in with an empty password. As long as you study phpmyadmin's configuration file config.default.php, you'll get a lot out of it and it will help you solve a lot of problems.

In Mysql modified root password command and method 1, I mentioned the method of using modified phpmyadmin Mysql root password, but when you set phpmyadmin login password to the empty password, although you can through the command line mode Mysql with an empty password entered Mysql, but when you back to empty password login phpmyadmin cannot log in, this is because the default phpmyadmin empty password is prohibited, if you want to phpmyadmin empty login password to allow, just need to modify the phpmyadmin related configuration.

In phpmyadmin3 installation configuration diagram tutorial 1 of this article, I introduced the phpmyadmin installation and configuration, as for the modified phpmyadmin login password interface, I in Mysql modified root password command and methods have been told that if you want to allow phpmyadmin in empty password login, will modify libraries/config default. php configuration file (if you are in the root directory config. inc. php phpmyadmin installation, please 1 and check).

Default phpmyadmin empty password is banned, the 1 behavior mainly through the configuration file libraries/config default. php two global variables in the control, namely

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


Just change the two variables, setting of True, phpmyadmin will allow login in empty password way, namely the modified libraries/config default. php
 
$cfg['Servers'][$i]['nopassword'] = true; 
$cfg['Servers'][$i]['AllowNoPassword'] = true; 

At the same time will


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

Set the database connection password to an empty password.

Matters needing attention

1. When an phpmyadmin blank password is allowed to log in, it is often only changed

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

This is not correct. If you cannot log in phpmyadmin with an empty password, you must change the above three configuration variables.

2. After modifying phpmyadmin configuration file config.default.php, login phpmyadmin with an empty password is sometimes still unable to login. This is caused by cookie.

So much for the configuration method that allows phpmyadmin to log in with an empty password. As long as you study the phpmyadmin configuration file config.default.php, you'll get a lot out of it and it will help you solve a lot of problems.

Related articles: