PDA

View Full Version : am i lost..... what's this.... why....


DevilsMania.com
Thu 2nd Aug '01, 6:56am
Warning: MySQL Connection Failed: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (111) in ./admin/db_mysql.php on line 40

at
http://forum.devilsmania.com


:( i am so sad it's 3 days it's out and nobody helps me...

it's an error of some php codes ? or of the Server config...

shri
Thu 2nd Aug '01, 9:29am
Bring the server down ... delete the file and reboot. Does that work?

DevilsMania.com
Thu 2nd Aug '01, 10:52am
argh the problem is that who updates the server comes online 1-2 x week.... and so... have to wait and wait...

but what file should be that ? the database ? and if deleted what am i gonna lose ? [i don't wanna lose any users or message posted]

..
thnx

shri
Thu 2nd Aug '01, 11:02am
It is the socket through which communications are established with the server.

If you know how to check attributes make sure that the directory (and the ones above it are chmod'ed to 755) so that apache (which runs under a different user than mysql) can read / execute through the socket.

DevilsMania.com
Thu 2nd Aug '01, 11:15am
which directory should be that exactly ?
..
tnx

DevilsMania.com
Thu 2nd Aug '01, 11:18am
if u mean that
/var/lib/mysql
socket thing..
i checked it and seems setted on 755 chmod...

shri
Thu 2nd Aug '01, 11:24am
Sorry .. should be 777

Check two things.

a) Your phpinfo(); page should show the following variable

MYSQL_SOCKET /var/lib/mysql/mysql.sock

b) The /var/lib/mysql directory is 777 and so is the mysql.sock file.

DevilsMania.com
Thu 2nd Aug '01, 11:40am
hey ... this is what my phpinfo contains:

<?php

phpinfo();

?>



***
about the other things they are all at 755

...
?
...
tnx

shri
Fri 3rd Aug '01, 6:08am
Ok. That should be read .. the output of PHPInfo. That should have the same path for mysql.sock as your server.

Try them at 777 (mysql processes need to be written to).

DevilsMania.com
Fri 3rd Aug '01, 6:59am
HEY .. we reinstalled everything now....

http://forum.devilsmania.com

thanks for your great info :)