Re: Mysql Authentication problem
| From: | Curt Zirzow | Date: | Sat, 13 Sep 2003 17:11:31 +0000 |
| Subject: | Re: Mysql Authentication problem | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-162505@lists.php.net to get a copy of this message | ||
* Thus wrote James Hamilton (jhamilton@alpha.net.au):
> > > [snip]
> > > The user has both localhost and % host privileges in the mysql
> > > permission
> > > schema.
> > > [/snip]
> > >
> > Any other thoughts?
> > [/snip]
> >
> 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";
Increase your error_reporting and turn on display_errors, you will
most likely be enlightened as to why you're unable to connect.
Curt
--
"I used to think I was indecisive, but now I'm not so sure."