Mysql connection problem
Deepan Chakravarthy
codeshepherd at gmail.com
Thu Apr 10 15:18:00 MDT 2008
William Attwood wrote:
> When you're at the command line you are using php-cgi (php5-cgi) to
> execute, which uses a different (sometimes) php.ini file. do a
> phpinfo(); from command line (phpinfo(); then grep -i .ini)
>
> Also make sure your user account has permission to connect to mysql
> from localhost.
ls -l reports the following
srwxrwxrwx 1 mysql mysql 0B Apr 10 21:34
which means I guess everyone has access .. Let me check php.ini for
command line..
>
> -Will
>
> On Thu, Apr 10, 2008 at 3:09 PM, Deepan <codeshepherd at gmail.com
> <mailto: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/
>
--
Deepan
Sudoku Solver http://www.sudoku-solver.net/
More information about the PLUG
mailing list