RE: [PHP-DB] MySQL Error. Please Help!

From: Date: Mon, 06 Nov 2000 19:32:37 +0000
Subject: RE: [PHP-DB] MySQL Error. Please Help!
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-4253@lists.php.net to get a copy of this message
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 >

« previous php.db (#4253) next »