Re: MySQL Error. Please Help!
| From: | Jamie Alessio | Date: | Mon, 06 Nov 2000 19:44:12 +0000 |
| Subject: | Re: MySQL Error. Please Help! | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-4254@lists.php.net to get a copy of this message | ||
I ended up having to make a symbolic link from /var/lib/mysql/mysql.sock to
/tmp/mysql.sock. I am not sure of the security implications of this though so if anyone
has any input on that it would be great. It works though if you just need a quick fix.
- Jamie
----- Original Message -----
From: "John Huggins" <huggins@tls2000.com>
To: "Nicolas Raitman" <new_world@radar.com.ar>; "db php"
<php-db@lists.php.net>
Sent: Monday, November 06, 2000 11:32 AM
Subject: RE: [PHP-DB] MySQL Error. Please Help!
> Hmmm, seems I remember MySQL using /tmp/mysql.sock rather than
> /var/lib/mysql/mysql.sock. I am sure this is adjustable and is probably
> just fine on your system, but you had better have a look.
>
> John
>
> > -----Original Message-----
> > From: Nicolas Raitman [mailto:new_world@radar.com.ar]
> > Sent: Sunday, November 05, 2000 9:03 PM
> > To: db php
> > Subject: [PHP-DB] MySQL Error. Please Help!
> >
> >
> > Hi to all ! I have the following mistake when I attempt to
> > connect to mysql.
> > I do the
> > following:
> >
> > $host = "localhost";
> > $user = "php";
> > $pass = "php";
> > $con = mysql_connect($host, $user, $pass);
> >
> > when I try to wacth the results on netscape I get the follwing message:
> >
> > Mysql Connection Failed. Cannot connect to local Mysql server
> > trough socket
> > /var/lib/mysql/mysql.sock
> >
> > As I recently installed mysql I thought that it could be a problem of not
> > having the php user enabled, so I created a user php with password php and
> > host localhost in the user table, is that ok? If not, how can I
> > do to create
> > a user to access certain databases??
> >
> > Thanks a lot,
> > Nicolas
> >
> >
> >
> > --
> > PHP Database Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net
> > For additional commands, e-mail: php-db-help@lists.php.net
> > To contact the list administrators, e-mail: php-list-admin@lists.php.net
> >
>
>
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net
> For additional commands, e-mail: php-db-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>
>