[Cialug] Mysql connection problem
Tony Bibbs
tony at tonybibbs.com
Fri Apr 11 14:24:34 CDT 2008
And, of course, make sure MySQL is running in the first place.
----- Original Message ----
From: chris <chris at ia.gov>
To: Central Iowa Linux Users Group <cialug at cialug.org>
Sent: Thursday, April 10, 2008 5:24:48 PM
Subject: Re: [Cialug] Mysql connection problem
-----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-----
_______________________________________________
Cialug mailing list
Cialug at cialug.org
http://cialug.org/mailman/listinfo/cialug
More information about the Cialug
mailing list