[Cialug] Mysql connection problem

chris chris at ia.gov
Thu Apr 10 17:24:48 CDT 2008


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

Deepan wrote:
| Hi All,
| I am able to connect to Mysql via command line
| using mysql client. I am also able to connect to
| mysql via php if I run those php programs via
| command line. However when I hit those php pages
| via the browser it throws the error Can't connect
| to local MySQL server through socket
| '/tmp/mysql.sock' (2). Please note that this is
| the same socket the mysql client tries to connect
| to the server.


Make sure the user that your webserver runs as has the correct permissions on /tmp/mysql.sock

crr
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.7 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFH/pOvvajVK7YH7O4RAgf8AJ4x5CigFm4QioIIC70suuuk6WpenACgh/3K
kzAJ/I3156QGw94Se3qZ7bQ=
=E19a
-----END PGP SIGNATURE-----


More information about the Cialug mailing list