ERROR 1045 (28000): Access denied for user

Error: 1045 SQLSTATE: 28000 (ER_ACCESS_DENIED_ERROR)
Message: Access denied for user ‘%s’@’%s’ (using password: %s)

This occurs when the user has no access to database server and user is trying to connect the database server.

Suggestions: 

  • Check the mysql user rights
  • Check the database access rights
  • Check the users IP

Leave a Comment