Few days back I was installing phpMyAdmin at my local machine in order to access the MySQL database, I found that when I access the phpMyAdmin URL it does not even ask for the login information i.e. database username and password and just shows the following message :
“
Invalid server index: “”
“
After googling around I found that this problem was occurring due to a undefined variable in the “config.inc.php” file. In order to resolve the situation I wrote the following lines of code inside “config.inc.php” file and now it is working fine.
“
$i=1;
$cfg['PmaAbsoluteUri'] = ‘http://localhost/phpMyadmin/’;
$cfg['blowfish_secret'] = ‘holla’;
$cfg['Servers'][$i]['host'] = ‘localhost’;
$cfg['Servers'][$i]['auth_type'] = ‘cookie’;
$cfg['Servers'][$i]['user'] = ‘root’;
$cfg['Servers'][$i]['password'] = ‘myrootpassword’;
?>
“