|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||||
|
|||||
|
Connecting to DB w/ MDB2
I previously followed a tutorial for DB abstraction using PEAR
Here are my installed PEAR packages - Installed packages, channel pear.php.net: ========================================= Package Version State Archive_Tar 1.3.1 stable Console_Getopt 1.2 stable DB 1.7.6 stable HTTP 1.2.2 stable MDB2 2.0.3 stable MDB2_Driver_mysql 0.2.3 beta Mail 1.1.10 stable Mail_Mime 1.3.1 stable Net_SMTP 1.2.6 stable Net_Socket 1.0.1 stable OLE 0.5 beta PEAR 1.4.6 stable Spreadsheet_Excel_Writer 0.9.0 beta XML_Parser 1.0.1 stable XML_RPC 1.1.0 stable I'm using Debian 3.1 (Sarge) and PHP4. Here is my config file: php Code:
Is this correct and how should I call it? Duane |
|
#2
|
|||
|
|||
|
RE: Connecting to DB w/ MDB2
Quote: |
|
#3
|
||||||
|
||||||
|
This may work
I just found this, and although it's a very old thread, I thought I would still give my input (since it still shows up on Google and I just had the same problem).
I was using PostgreSQL, however- but my problem was similar in the sense that nothing seemed wrong but I still could not connect... this is what solved it for me: I set localhost(80) as the host. I think this is to explicitly tell it to connect using port 80, which may be a restriction set in place for that particular DB user, as it appears to have been for me. Try it if you still have, or end up again experiencing, that problem. It may work for you. Forgive me if I am off-base in my explanation of this solution... I am still relatively new to DSN and DB abstraction layers. Quote:
|
![]() |
| Viewing: Codewalkers Forums > PHP Related > PEAR Packages > Connecting to DB w/ MDB2 |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|
|
|
|