WP mysql error

Status
Not open for further replies.

orangpelupa

New Member
Messages
46
Reaction score
0
Points
0
i got
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.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.

have set localhost on remote mysql server, but WP still look at mysql.x10hosting.com

how to solve this? how to make WP change frm mysql.x10hosting.com to localhost?

thanks
 

Chris73

New Member
Messages
5,356
Reaction score
1
Points
0
Please change the mysql.x10hosting.com back to localhost and remove the %.x10hosting.com from the remote mysql in your cPanel. The MySQL has been moved back to the local server from the remote server. This will solve your MySQL error you are receiving.


You will have either a config.php file or a mysql_connect file. Youl will need to change the host in one of those files(which ever one you might have) from mysql.x10hosting.com to localhost.
 
Last edited:

satbir

New Member
Messages
547
Reaction score
1
Points
0
Change following line in wp-config.php to change database host as follows:

define('DB_HOST', 'localhost');

(You may see this as define('DB_HOST', 'mysql.x10hosting '); presently)

Also check what are rights on the directory in which wordpress. Somehow in my case rights on that directory was set to 644 instead you need to change that to 755.

With these two changes my site started working.
 
Last edited:

orangpelupa

New Member
Messages
46
Reaction score
0
Points
0
now i got
WordPress

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.

and in remote my sql, i add localhost
but it become :
Cpanel::Mysql=HASH(0x8a15964)

what can i do to make my WP work again?
this happened right after the server backonline
 

kambuja

New Member
Messages
12
Reaction score
0
Points
0
I got the same problem here althought I am using drupal and on stoli. I'd changed my server to localhost and delete the %.x10hosting.com from remote sql section. The problem still exist. Right now I still have four other remote sql servers specified in my remote sql section:
10.10.96.230
74.86.116.188
Cpanel::Mysql=HASH(0x9899964)
Cpanel::Mysql=HASH(0x9cd1964)
Just want to know what they are. I can't delete them.
 

orangpelupa

New Member
Messages
46
Reaction score
0
Points
0
it seems not just me wo got this problem.
it seems the "server move thing" still have many side-effects.

i hope x10 team fix this fast. my WP cant work without mysql

and i hope when im able to connect the mysql, my data still there, itwill be bad if mydata loss


thanks
Edit:
still not working with "localhost"

still the same error..

i guess im forced to move to other free host if this problem still continue for next week

EDIT:
not i got
Sorry for the inconvenience!
The filesystem mounted at /home/moreuse on this server is running out of disk space. cPanel operations have been temporarily suspended to prevent something bad from happening. Please ask your system admin to remove any files not in use on that partition.

Edit:
the WP my sql SOLVED!!

solved by creating new user :)

thanks,
 
Last edited:
Status
Not open for further replies.
Top