WordPress - Error Establishing a database connection

Status
Not open for further replies.

daftster

New Member
Messages
21
Reaction score
0
Points
0
Hi,

My site is having this 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 localhost. 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.



I have done nothing and this just came out.



Thanks,
daftster
http://www.binondochineseparish.org
 

Icecoldcoke

New Member
Messages
60
Reaction score
0
Points
0
In your public_html (or where your WordPress is located). Open wp-config.php.

Where it says

Code:
define('DB_HOST', 'localhost'); // 99% chance you won't need to change this value

change localhost to mysql.x10hosting.com

So it says

Code:
define('DB_HOST', 'mysql.x10hosting.com'); // 99% chance you won't need to change this value

If it already says mysql.x10hosting.com, then idk :p


Also, double check that these values are correct:

Code:
define('DB_NAME', 'CPANELTHINGY_Wordpressorweyourdbnameis'); // The name of the database
define('DB_USER', 'CPANELTHINGY_lolhiusernamehere'); // Your MySQL username
define('DB_PASSWORD', 'lolgoodpasswordhere'); // ...and password
 
Last edited:

daftster

New Member
Messages
21
Reaction score
0
Points
0
Now WORKING!!! :) did change to mysql.x10hosting.com.
What happened there? there was an update? THANKS!!!!
 

Icecoldcoke

New Member
Messages
60
Reaction score
0
Points
0
Now WORKING!!! :) did change to mysql.x10hosting.com.
What happened there? there was an update? THANKS!!!!

Yeah, all the DBs were moved to a new server, so it was required that all DB using things were configured to point to the new server.
 
Status
Not open for further replies.
Top