Re: MDB2 connect failure - php5,

From: Date: Mon, 12 Mar 2007 18:49:26 +0000
Subject: Re: MDB2 connect failure - php5,
References: 1 2  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-26828@lists.php.net to get a copy of this message
Hi, Justin Patrin wrote:
require_once 'MDB2.php' ; $dsn = "pgsql://minitwr:RWHart@localhost/bpsimple" ;
Your problem is likely that you're using a different username and database name. Oracle has some strange ways of forcing usernames to also be a DB that causes querying problems so MDB2 has an option to simulate a normal RDBMS. Unfortunately this means that using a different username than database name can be confusing. Try using: $dsn = 'pgsql://minitwr:RWHart@localhost/minitwr'; and adding the database name before your table names in your queries.
You can't "add the database name before table names" in PostgreSQL: you only connect to one database at a time and cannot access other databases in your queries without jumping through a certain number of hoops.

« previous php.pear.general (#26828) next »