Re: PEAR and ODBC
| From: | Tomas V.V.Cox | Date: | Sat, 09 Mar 2002 16:34:34 +0000 |
| Subject: | Re: PEAR and ODBC | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-4949@lists.php.net to get a copy of this message | ||
El vie, 08-03-2002 a las 19:53, Wolfram Kriesing escribió:
> i was using odbc for the first time with PEAR today and since i was
> not familiar with odbc before it took me a while to figure out, that
> connecting via odbc doesnt require a host
> DB::connect( 'odbc://user:pass@dbname' );
> as i.e. for mysql
> DB::connect( 'mysql://user:pass@host/dbname' );
>
> may be it would be a good idea to put this hint in the docs, i didnt
> find it in there
> or is this not the normal behaviour?
For the odbc driver you have to supply the ODBC Data Source as the host
to connect and optionally the user and password. Just check
odbc_connect() and the connect method for the PEAR DB odbc driver.
Tomas V.V.Cox