Home > Backend Development > PHP Tutorial > 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
Release: 2024-10-19 11:53:01
Original
564 people have browsed it

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'] =";
Copy after login

Replace this line with:

$cfg['Servers'][$i]['password'] = 'Type your root password here';
Copy after login

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!

source:php
Statement of this Website
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
Latest Articles by Author
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template