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" <[EMAIL PROTECTED]> 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@mail.gnhlug.org > http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss/ _______________________________________________ gnhlug-discuss mailing list gnhlug-discuss@mail.gnhlug.org http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss/