Some kind of MySQL error in AMPPS

I keep getting this error related to MySQL when entering “localhost” in AMPPS. It says,“Warning: mysqli::mysqli(): (HY000/1045): Access denied for user ‘root’@‘localhost’ (using password: NO) in C:\Program Files (x86)\Ampps\www\includes\class-db.php on line 6 Connect failed Access denied for user ‘root’@‘localhost’ (using password: NO),” and I can’t seem to figure this out. Please help me :^(

For clarification, I’ve posted a picture of what it looks like.

MySql requires both a valid username and a valid password in order to connect to a database.

The error-message states that you are not using a password.

Check the file: class-db.php on line:6.

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.