Error establishing database connection?

Status
Not open for further replies.

niteowlrecords

New Member
Messages
5
Reaction score
0
Points
0
After the Chopin transfers/maintenance, my site keeps reporting an "Error establishing a database connection." What should I do to fix this?
 

Zubair

Community Leader
Community Support
Messages
8,766
Reaction score
305
Points
83
Follow These Simple 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');
 

niteowlrecords

New Member
Messages
5
Reaction score
0
Points
0
Thanks for that, but after some playing around, I noticed that I can get into the WordPress part of the site fine, but my simple HTML front page is the part returning the error.
edit:
Fixed it, there were a bunch of random WordPress files in the wrong directory that was giving me an error.
 
Last edited:

Zubair

Community Leader
Community Support
Messages
8,766
Reaction score
305
Points
83
Thanks for that, but after some playing around, I noticed that I can get into the WordPress part of the site fine, but my simple HTML front page is the part returning the error.
edit:
Fixed it, there were a bunch of random WordPress files in the wrong directory that was giving me an error.

I browse your site little bit and notice that everything is working fine...

Post the URL where you are getting error..
 
Status
Not open for further replies.
Top