Database connection error

Status
Not open for further replies.

Zubair

Community Leader
Community Support
Messages
8,766
Reaction score
305
Points
83
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');
 
Last edited:

amit205

New Member
Messages
4
Reaction score
0
Points
0
Its already set to what you mentioned. My site was running normal before and I didn't try anything fancy.
 
Status
Not open for further replies.
Top