PEAR Forum :: PHP Extension and Application Repository

PEAR Forum Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
MBD2: Specifying Which Driver (as Opposed to DB Name) to Use

 
Post new topic   Reply to topic    PEAR Forum Forum Index -> Database
View previous topic :: View next topic  
Author Message
Jesdisciple



Joined: 24 Mar 2008
Posts: 11
Location: Texas

PostPosted: Mon Mar 24, 2008 1:13 am    Post subject: MBD2: Specifying Which Driver (as Opposed to DB Name) to Use Reply with quote

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
View user's profile Send private message
mark



Joined: 07 Jan 2007
Posts: 1011

PostPosted: Mon Mar 24, 2008 12:33 pm    Post subject: Reply with quote

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
View user's profile Send private message
Jesdisciple



Joined: 24 Mar 2008
Posts: 11
Location: Texas

PostPosted: Mon Mar 24, 2008 9:10 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    PEAR Forum Forum Index -> Database All times are GMT + 2 Hours
Page 1 of 1

 
Jump to:  
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



PEAR Forum topic RSS feed 
Powered by phpBB © 2001, 2005 phpBB Group

Provided by Ministry of Web developement

'Actiemonitor' online projectmanagement software