Link to database cannot be established: SQLSTATE[HY000] [1044] Access denied for user

Check the following when troubleshooting database connection problems:

  1. Check the file config/settings.inc.php has the correct database username, password and server values
  2. Check you have added the database user to the database. From cpanel -> Mysql Databases ->Add a User to a Database -> select user and database -> add -> select all Privileges -> make changes (refer to screenshot below)

add_user_to_database

 

 

 

Was this article helpful?

Related Articles