This error shows because of the following reasons:

  1. The database user does not have the required permissions to access the database.
  2. The database credentials (username/password) are incorrect