[Wolves] Accessing mysql through php from jailshell

David Goodwin david at codepoets.co.uk
Thu Jun 18 10:43:07 UTC 2009


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


> I am using mysql_connect("localhost", "name", "passwd");


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

- --
David Goodwin

[ david at codepoets dot co dot uk ]
[ http://www.codepoets.co.uk       ]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAko6GoIACgkQ/ISo3RF5V6Y3uACfSO8MsYYhHgw+w6uRMQT7vnbJ
E/UAoIFEpA3Mx6NsY7sppeDA8r6y/Nqo
=zme3
-----END PGP SIGNATURE-----



More information about the Wolves mailing list