Mysql connection problem

Brian Karas brk-gnhlug at karas.net
Thu Apr 10 17:18:20 EDT 2008


This often happens when you have a user configured only for localhost
connections.  Coming from the command line, the user will generally appear
to originate from localhost.  Coming from a PHP or CGI app the user will
generally appear to come from the hostname.

I'd start by checking the users table.


On 4/10/08 5:09 PM, "Deepan" <codeshepherd at 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 
> Sudoku Solver: http://www.sudoku-solver.net/
> 
> 
> _______________________________________________
> gnhlug-discuss mailing list
> gnhlug-discuss at mail.gnhlug.org
> http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss/




More information about the gnhlug-discuss mailing list