Solved Database error
| From: | moses at softwaysolutions dot com | Date: | Mon, 08 May 2006 10:01:00 +0000 |
| Subject: | Solved Database error | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-23997@lists.php.net to get a copy of this message | ||
Thank u every body
Its Correct my database is accepting any user
regards
moses
> -------- Original Message --------
> Subject: [PEAR] Re: Database error (More Details)
> From: Mark Wiesemann <wiesemann@php.net>
> Date: Mon, May 08, 2006 2:44 am
> To: moses@softwaysolutions.com
> Cc: pear-general@lists.php.net
>
> moses@softwaysolutions.com wrote:
>
> > require_once 'DB.php';
> > $dsn = 'mysql://root:@localhost/student';
> > $db =& DB::connect($dsn);
> > if(PEAR::isError($db))
> > {
> > die($db->getMessage());
> > }
> > echo "<br> Database Connected Sucessfully";
>
> The code looks good.
>
> > THE USER TABLE IN MYSQL contains the following users
> >
> > -----------------------------------------
> > Host User password
> > -----------------------------------------
> > localhost root
> > % root
> > localhost
> > %
> > -----------------------------------------
>
> This could be the problem. Looks like if every username would be
> accepted here. You can try this yourself via mysql on a shell.
>
> Regards,
> Mark
>
> --
> PEAR General Mailing List (http://pear.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php