[aklug] Re: Mysql connection problem

From: Michael Figley <michaelfigley@yahoo.com>
Date: Thu Apr 10 2008 - 23:16:52 AKDT

--- Deepan <codeshepherd@gmail.com> 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.
> Regards
> Deepan

Assuming mysql & webserver are running on same
host - Is your browser running on same host as well?
( mysql defaults to localhost access only )

mike

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
---------
To unsubscribe, send email to <aklug-request@aklug.org>
with 'unsubscribe' in the message body.
Received on Thu Apr 10 23:17:32 2008

This archive was generated by hypermail 2.1.8 : Thu Apr 10 2008 - 23:17:33 AKDT