Can't connect to local MySQL server

Status
Not open for further replies.

aldeano.hagefosti51

New Member
Messages
1
Reaction score
0
Points
0
Hi!

I mounted a WordPress blog on my site, but from a few days ago I can't access it.

When I go to http://hagefosti.x10.mx/ I get a message: Error establishing a database connection

I checked some forums and I found something about the Remote Database Access Hosts. I have the following hosts:

10.33.%
10.33.248.%
10.33.249.7
int.starka.x10hosting.com

I just added the 10.33.% and the connection worked just once.

I made another php file to test MySQL connection http://hagefosti.x10.mx/prueba.php but it doesn't work either. The message I get is: Warning: mysql_connect() [function.mysql-connect]: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (111) in /home/aldeano/public_html/prueba.php on line 4
Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (111)

Thanks.

---------- Post added at 06:09 PM ---------- Previous post was at 05:38 PM ----------

I fixed it changing "localhost" in mysql_connect and WordPress to mysql-starka.x10hosting.com
 
Status
Not open for further replies.
Top