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