RE: [PHP] Mysql Authentication problem

From: Date: Thu, 11 Sep 2003 13:08:49 +0000
Subject: RE: [PHP] Mysql Authentication problem
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-162273@lists.php.net to get a copy of this message
> > [snip] > > The user has both localhost and % host privileges in the mysql > > permission > > schema. > > [/snip] > > > > Add the same user with 127.0.0.1 as the host. Make sure you reload > > ("flush") the users table > > > > Any other thoughts? > [/snip] > > What is your connection string? (code) > > current testing code: $link = mysql_connect("localhost", "user", "pass" ) or die("Could not connect : " . mysql_error()); print "Connected successfully"; mysql_select_db("name") or die("Could not select database"); print "connected"; with user = null && pass=null && name=test then I can access the test db with no probs JH

« previous php.general (#162273) next »