[prev in list] [next in list] [prev in thread] [next in thread] 

List:       php-db
Subject:    [PHP-DB] no such database
From:       Brad Hubbard <brad () congosystems ! com>
Date:       2003-02-02 1:48:47
[Download RAW message or body]

Red Hat 8.0
php-4.2.2-8.0.5
postgresql-7.2.2-1

I've used the PEAR DB classes quite a lot in the past but have moved to a new 
machine and have encountered a bit of a perplexing problem.

the following code generates the error;

DB Error: no such database

<?php

  require_once 'DB.php';
  $dsn = 'pgsql://fred:nurk@unix+localhost/tryme';

  $db = DB::connect( $dsn );

  if( DB::isError( $db ) )
  {
        die( $db->getMessage()." ".__FILE__." ".__LINE__."\n" );
        exit;
  }

?>

I KNOW that the user, password and database are for real cause I can connect 
from the command line using "psql tryme -U fred".

Any ideas?

TIA,
Brad

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

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic