Silver Fox wrote:

> I just got this problem...
>
> bin/mysql -h localhost -u root
> logs me into MySQL at the command line
>
> However, the CGI script for Apache webserver gave me an error connecting to
> the database
> $source = "DBI:mysql:red:localhost";
> $username = "root";
> $password = "";
>
> Did any of you ever face this problem before??
> BTW, I'm running Mandrake Linux...

It is probably a problem with the permissions of the /path/to/mysql.sock.  The
web server usually runs as user nobody so make sure that the path to the
mysql.sock has world read and execute.

--Bill



---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to