Locate the "config.inc.php" file in your phpMyAdmin directory and edit the following lines:
$cfg['Servers'][$i]['auth_type'] = 'config'; // config, http, cookie
$cfg['Servers'][$i]['user'] = 'root'; // MySQL user
$cfg['Servers'][$i]['password'] = 'TYPE_YOUR_PASSWORD_HERE'; // MySQL password
Please note that the password used in the password field must be the same for the MySQL user password. In addition, you should check if root is allowed on this line:
$cfg['Servers'][$i]['AllowRoot'] = TRUE; // true = allow root login
Thus, you have your root password set.
source share