Resolving "Access Denied" Error for 'root' User in phpMyAdmin
When accessing phpMyAdmin with the 'root' user, many users encounter an access denied error when using 'localhost' as the host. This error occurs due to an incorrect password configuration or a mismatch between the user's credentials and the MySQL server.
To rectify this issue without reinstalling WAMP, locate the config.inc file within the phpMyAdmin installation directory (typically C:wampappsphpmyadmin3.5.1). Within this file, identify the line:
$cfg['Servers'][$i]['password'] ="";
Replace the empty string within the quotation marks with the desired password for the 'root' user. Save the changes to the config.inc file and restart phpMyAdmin.
By updating the password, you can resolve the access denied error and restore the 'root' user's normal access privileges to phpMyAdmin.
The above is the detailed content of Why Am I Getting an \'Access Denied\' Error for the \'root\' User in phpMyAdmin?. For more information, please follow other related articles on the PHP Chinese website!