 |
|
|
| View previous topic :: View next topic |
| Author |
Message |
Jesdisciple
Joined: 24 Mar 2008 Posts: 11 Location: Texas
|
Posted: Mon Mar 24, 2008 1:13 am Post subject: MBD2: Specifying Which Driver (as Opposed to DB Name) to Use |
|
|
I plan on using MDB2 for my project, but I'm having some difficulty making them compatible. I'm potentially going to make one database with each of the supported managers (if the user reconfigures my app) and would like to name all of them the same thing. But, if I can't explicitly tell MDB2 which driver to use, the database name would be ambiguous in this scenario. So is there currently a way to specify the driver? Thanks!
(BTW, the specifics of my project can be found at http://code.google.com/p/error-logger/.) |
|
| Back to top |
|
 |
mark

Joined: 07 Jan 2007 Posts: 1051
|
Posted: Mon Mar 24, 2008 12:33 pm Post subject: |
|
|
Which DBMS driver is used, is specified in the DSN string/array, just like it is done with the username or the name of the database, e.g.:
$dsn = 'mysql://...';
or
$dsn = 'mssql://...'; |
|
| Back to top |
|
 |
Jesdisciple
Joined: 24 Mar 2008 Posts: 11 Location: Texas
|
Posted: Mon Mar 24, 2008 9:10 pm Post subject: |
|
|
| mark wrote: | Which DBMS driver is used, is specified in the DSN string/array, just like it is done with the username or the name of the database, e.g.:
$dsn = 'mysql://...';
or
$dsn = 'mssql://...'; | Oh! I thought [data source == database]. That clears up a lot... Thanks! |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|