[Wolves] Accessing mysql through php from jailshell

DragonMaster LUG at clews.homelinux.net
Thu Jun 18 10:57:57 UTC 2009


> Try using '127.0.0.1' instead of localhost; I have a feeling MySQL will
> try and connect through a socket file if it sees localhost. Presumably
> your Jail is stopping it [mysql_connect] from finding the socket file -
> hence the problem
>
> David
>
>   
No, this still comes up as localhost.

I tried setting to hostname to the IP address of the server, but this 
gives me "Lost connection to MySQL server at 'reading initial 
communication packet', system error: 111"...




More information about the Wolves mailing list