Home  >  Article  >  Backend Development  >  How to Solve Access Denial Issue for \'root@\'localhost\' User in phpMyAdmin?

How to Solve Access Denial Issue for \'root@\'localhost\' User in phpMyAdmin?

Barbara Streisand
Barbara StreisandOriginal
2024-10-19 11:53:01453browse

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn