Php Tutorial myadmin does not need a password to log on
The latest phpmyadmin version
After installation, enter the username "root" and click "log on" (because I am Local, the root account has no password)
The result is always an access denied error.
It's okay to check the permission settings,
No good answers are found on the Internet,
The same as the root trace code. The original configuration file config. default. php contains the following sentence:
$ Cfg ['servers'] [$ I] ['allownopasswordroot '] = false;
He was verified in row 886 of libraries/common. inc. php.
If this parameter is set to false, the password cannot be blank if the user name is the root user. Otherwise, the password is not verified. By default, the password is flase. Change it to true,
I think this may be for the sake of security. People must set the root password. Oh, but I think it is inconvenient to test it. Generally, local root users are empty.
He can change the prompt statement, saying that your root password is blank and logon is not allowed at the current security level.
You can change the settings at XXX, so you may understand that it is too difficult to find the reason for a single access rejection!
Method 2
./After phpmyadmin is entered, modify the user permission to allow empty password login!
Method 3
By default, empty phpmyadmin passwords are disabled for logon. This line is mainly controlled by two global variables in the configuration file libraries/config. default. php, that is
The code is as follows:
$ Cfg ['servers'] [$ I] ['nopassword'] = false;
$ Cfg ['servers'] [$ I] ['allownopassword'] = false;
If these two variables are set to True, phpmyadmin will allow empty passwords to log on, that is, modifying the values in libraries/config. default. php
The code is as follows:
$ Cfg ['servers'] [$ I] ['nopassword'] = true;
$ Cfg ['servers'] [$ I] ['allownopassword'] = true;
At the same time
The code is as follows:
$ Cfg ['servers'] [$ I] ['password'] = '';
The connection password of the database tutorial is set to null.