[Leaplist] Mysql connection problem
Mark W. Alexander
slash at dotnetslash.net
Sat Apr 12 08:25:18 EDT 2008
On Fri, Apr 11, 2008 at 02:39:02AM +0530, 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.
Have you checked ownership and permissions on /tmp/mysql.sock? In order for
"pages" to access MySQL, the web server (I assume apache) needs to be able to
access the socket.
mwa
--
Mark W. Alexander
slash at dotnetslash.net
The contents of this message authored by Mark W. Alexander are released under
the Creative Commons Attribution-NonCommercial license. Copyright of quoted
materials, if any, are retained by the original author(s).
http://creativecommons.org/licenses/by-nc/2.0/
More information about the Leaplist
mailing list