Re: MDB2 connect failure - php5,
| From: | Justin Patrin | Date: | Mon, 12 Mar 2007 20:39:57 +0000 |
| Subject: | Re: MDB2 connect failure - php5, | ||
| References: | 1 2 3 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-26830@lists.php.net to get a copy of this message | ||
On 3/12/07, Alexey Borzov <borz_off@cs.msu.su> wrote:
Hi, Justin Patrin wrote:Sorry, I for some reason thought this was about oci8, not pgsql. Please disregard my comments. -- Justin PatrinYour 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.require_once 'MDB2.php' ; $dsn = "pgsql://minitwr:RWHart@localhost/bpsimple" ;