Error establishing a database connection

Status
Not open for further replies.

indielogue

New Member
Messages
4
Reaction score
0
Points
0
I'm getting a "Error establishing a database connection" error message but my account is not suspended and I'm unable to enter my homepage. I am using wordpress for updates on my site but i cannot even enter the index.html page. help!
 

Gouri

Community Paragon
Community Support
Messages
4,565
Reaction score
245
Points
63
I'm getting a "Error establishing a database connection" error message but my account is not suspended and I'm unable to enter my homepage. I am using wordpress for updates on my site but i cannot even enter the index.html page. help!

The database host should be localhost. Check it in wp-config.php file.
 

Zubair

Community Leader
Community Support
Messages
8,766
Reaction score
305
Points
83
I'm getting a "Error establishing a database connection" error message but my account is not suspended and I'm unable to enter my homepage. I am using wordpress for updates on my site but i cannot even enter the index.html page. help!

Follow these steps

1) Open cpanel file manager.
2) Select wp-config.php file located in your wordpress root folder.
3) Open it in code editor.
4) Press Ctrl+F and find 'DB_HOST'. It should be on line 28
5) Right after that change the text any written to localhost.
6) After editing it should look like this.
PHP:
/** MySQL hostname */
define('DB_HOST', 'localhost');
 

indielogue

New Member
Messages
4
Reaction score
0
Points
0
Follow these steps

1) Open cpanel file manager.
2) Select wp-config.php file located in your wordpress root folder.
3) Open it in code editor.
4) Press Ctrl+F and find 'DB_HOST'. It should be on line 28
5) Right after that change the text any written to localhost.
6) After editing it should look like this.
PHP:
/** MySQL hostname */
define('DB_HOST', 'localhost');


Thanks for your kind help but i am still getting the same problem:

Error establishing a database connection

This either means that the username and password information in your wp-config.php file is incorrect or we can't contact the database server at mysql-lotus.x10hosting.com. This could mean your host's database server is down.

  • Are you sure you have the correct username and password?
  • Are you sure that you have typed the correct hostname?
  • Are you sure that the database server is running?
If you're unsure what these terms mean you should probably contact your host. If you still need help you can always visit the WordPress Support Forums.


Perhaps it is the server upgrading, will just have to wait :)
 

Anna

I am just me
Staff member
Messages
11,752
Reaction score
581
Points
113
yes, does seem likely that it is due to the updates, your server lotus is being migrated onto a new server. At least that was the last I heard and I have not been notified that it should be completed yet.
 
Status
Not open for further replies.
Top