Error establishing database connection - How to fix it? Print

  • 0

As the name itself suggests, this problem happens when the PHP (or perhaps WordPress) system isn't able to establish a successful database connection.

There are a variety of reasons why this might happen. We have listed the most common things which cause this error in this self-help article.

  1. Improper or Misspelled MySQL Username and Password combination. Cross-check your username and password once again to make sure that you're using the right ones without any misspells.
  2. You might be trying to establish a database connection over localhost. Unlike cPanel, our platform doesn't support localhost based database connections. You have to use appropriate values as shown in this picture: https://prnt.sc/srh1mz
  3. Your PHP is more probably involving a fatal error. Try increasing your PHP memory limit in your hosting control panel and try again.

By now, you should have more probably got your problems fixed. If not, don't worry, we're always here to help. Kindly get in touch with our support team to get expert consultation.


Was this answer helpful?

« Back