WordPress Database Error

Status
Not open for further replies.

nourishpeace

New Member
Messages
1
Reaction score
0
Points
0
I can't view my wordpress blog anymore and receive the message:
Error establishing a database connection


I checked the wp_config.php to check the username and password, but nothing has changed. How do I fix this?
 

descalzo

Grim Squeaker
Community Support
Messages
9,372
Reaction score
326
Points
83
I can't view my wordpress blog anymore and receive the message:
Error establishing a database connection


I checked the wp_config.php to check the username and password, but nothing has changed. How do I fix this?


Make sure that the HOST is set to 'localhost' ... the recent upgrades require that instead of the full server name.
 

Zubair

Community Leader
Community Support
Messages
8,766
Reaction score
305
Points
83
Having difficulties to edit wp-config file???

If any user is using Wordpress and getting the database error.

Unable to establish database connection

Then 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.

Code:
/** MySQL hostname */
define('DB_HOST', 'localhost');
 
Status
Not open for further replies.
Top