Open the phpMyAdmin folder under theconfig.sample.inc.phpfile,find this sentence
$cfg [' Servers '] [$i] [' auth_type '] = ' config ';
This can be set to HTTP (http), config, cookies, signon.
Config: This is a simple way to write the password directly to the config.inc.php file and read the file directly when you log in.
Cookies: This is the normal version of the login method, is the basic fill in the user name and password, stored in the cookie and so on after you exit will be removed.
http (http): This is the HTTP authentication mode, when you log in to this page, the browser will pop up a dialog box prompts you to enter the user name and password.
signon: This mode can provide you with the ability to write a PHP script, log in when you read this script. For example, "signon/example.php".
If set to ' Config ', the following sentence is found
$cfg [' Servers '] [$i] [' password '] = ';
Change into
$cfg [' Servers '] [$i] [' password '] = ' your database password ';
phpMyAdmin attempt to connect to MySQL server is denied