Error code

MySQL 1045

MYSQL1045
Database Error Code· An error code returned by a database server such as PostgreSQL or MySQL.

What it means

Access denied for user — wrong credentials.

How to fix it

  1. Verify the username and password in the connection string or application configuration.
  2. Reset the account password with ALTER USER '<name>'@'<host>' IDENTIFIED BY '<password>'.
  3. Confirm that the connecting host matches the host pattern in the MySQL grant tables using SELECT user\.

Not affiliated with MySQL. Answer summarized from the manufacturer's manual linked above; consult that source for the authoritative procedure.