Failed to establish a connection to the database

So I’ve read the other post about same error, but didn’t solve my problem ( other post )
I’ve checked though FTP the wp-config and yes, had the domain name on DB_HOST but

You should have something like this:

/** MySQL hostname */
define( ‘DB_HOST’, ‘localhost’ );

Right now, it probably has something like instead of localhost .

But neither localhost or solves the issue. Waited with localhost for over an hour and nothing. Can’t access my website.

Try the IP address instead. Either or the actual IP address of your server.

If that doesn’t work, it’s possible the DB is down.

Not working either :frowning:

Run netstat -tpln and see is the DB port open?

1 Like

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.