Home >Backend Development >PHP Tutorial >How to Solve Access Denial Issue for \'root@\'localhost\' User in phpMyAdmin?
Troubleshooting Access Denial Issue for 'root@'localhost' User in phpMyAdmin
When accessing phpMyAdmin, you may encounter the error "Access denied for user 'root'@'localhost' (using password: NO)," even after setting a password for the 'root' user on the 'localhost' host.
To address this issue, locate the config.inc file under C:wampappsphpmyadmin3.5.1. Within this file, find the following line:
$cfg['Servers'][$i]['password'] =";
Replace this line with:
$cfg['Servers'][$i]['password'] = 'Type your root password here';
Ensure to replace 'Type your root password here' with the actual password you wish to assign to the 'root' user. This should restore access to phpMyAdmin without requiring a complete reinstall of WAMP.
The above is the detailed content of How to Solve Access Denial Issue for \'root@\'localhost\' User in phpMyAdmin?. For more information, please follow other related articles on the PHP Chinese website!