Pear DB version is 1.6.8

"Jason Davis" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> MySQL 4.1
> PHP 4.3.10
> PEAR 0.5.0 (I think, not sure how to test that)
>
> On two different boxes
> one is an XP Pro box
> one is an Win2K Pro Box
>
> both running IIS
>
> "Richard Hutchins" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
> > What version of PHP?
> > What version of MySQL?
> >
> > -----Original Message-----
> > From: Jason Davis [mailto:[EMAIL PROTECTED]
> > Sent: Thursday, January 06, 2005 10:42 AM
> > To: php-db@lists.php.net
> > Subject: [PHP-DB] Trying to connext to MySQL with PEAR
> >
> >
> > Hi all I am new to PHP and am trying to connect to mysql for the first
> time.
> > I get activity on the mysql monitor when I run it, but get the following
> > error.
> >
> > DB Error: connect failed
> >
> > The lines of code are:
> > require_once( "DB.php" );
> > $dsn = "mysql://".DB_USER.":".DB_PASS."@".DB_SERVER."/".DB_NAME;
> > echo $dsn;
> > $isPersistant = TRUE;
> > $db = DB::connect($dsn, $isPersistant);
> >
> > if ( DB::isError( $db ) ) {
> >     die ($db->getMessage());
> > }
> >
> > The constants are properly defined and passing through to this page
> (checked
> > with echo), the database is created, the user has an account, and the
> > account has rights to do all funcitons on the db. Any thoughts on what
> might
> > be wrong?
> >
> >
> > Thanks
> > Jason
> >
> > -- 
> > PHP Database Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to