You are here: Pear's MDB2/DB and PostgreSQL 8.1 « PHP Programming Language « IT news, forums, messages
Pear's MDB2/DB and PostgreSQL 8.1

Posted by scottauge@gmail.com on 11/03/06 10:54

I cannot for the life of me get a connection using MDB2 to a PostgreSQL
8.1 database.

I can get a connection just fine using:

$db = pg_connect ("host=localhost port=5432 dbname=subscriber
user=scottauge password=mypassword");

and using a dsn:

$dsn="pgsql://scottauge:mypassword@tcp(localhost:5432)/subscriber";

on DB works just fine.

But when trying to use MDB2 I simply get the error "MDB2 Error: not
found"

Is there some sort of magic I am missing?

Is MDB2 compatible with PHP 5?

I have been using the DSN as found in
http://pear.php.net/manual/en/package.database.mdb2.intro-dsn.php

Apache/2.0.55 (Unix) mod_ssl/2.0.55 OpenSSL/0.9.8a DAV/2 PHP/5.1.1
DB 1.7.6 stable
MDB2 2.2.2 stable
PEAR 1.4.5 stable

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация