Warning: Mysqli_Connect(): (Hy000/1045): Access Denied for User 'Username'@'Localhost' (Using Password: Yes)

Warning: mysqli_connect(): (HY000/1045): Access denied for user 'username'@'localhost' (using password: YES)

That combination of username, host, and password is not allowed to connect to the server. Verify the permission tables (reloading grants if required) on the server and that you're connecting to the correct server.

Failing to connect to database (HY000/1045), trying to connect to a database using php mysqli_connection

This error appears because you have passed invalid credentials (user name and/or password or maybe the hostname) when trying to connect to the database.
You have to check the valid credentials by yourself. If you use phpmyadmin it should be in tab "User Accounts".

see this reference may help you https://dev.mysql.com/doc/refman/5.7/en/creating-accounts.html

Related Topics

Leave a reply