Troubleshooting Database Connection Errors Print

  • cpanel, database, mysql, troubleshooting
  • 0

When an application reports that it cannot connect to its database, verify the connection in a controlled order.

  1. Confirm the database still exists in Manage My Databases.
  2. Confirm the configured database username is correct.
  3. Confirm that user is assigned to the database with the required privileges.
  4. Verify the password stored in the application's configuration.
  5. Verify the database host value.
  6. Use the database check tool if corruption is suspected.

Do not reset multiple passwords and rename databases at the same time. Changing one variable at a time makes the root cause easier to identify.


Was this answer helpful?

« Back