httpd-modules-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tom Donovan <donov...@bellatlantic.net>
Subject Re: mod_dbd and more than one database server
Date Thu, 10 Jul 2008 01:34:41 GMT
Kevac Marko wrote:
> Hello.
> 
> Is there any way in mod_dbd to connect to more than one database server?
> 

Yes - but only for different virtual hosts.

You can put different mod_dbd directives within different <VirtualHost> sections.  You
can even use 
different DBDriver and DBDParams if you have completely different databases, e.g. MySQL and
SQLite.

mod_dbd only provides connections from one set of mod_dbd directives per virtual host, so
you can't 
access more than one database from the same virtual host.

If you are writing your own module, you could always open ad-hoc database connections directly
using 
the apr-util functions apr_dbd_get_driver(), apr_dbd_open_ex(), apr_dbd_close(), etc. instead
of 
using the pool of connections provided by mod_dbd.

-tom-



Mime
View raw message