Comments on: Multiple databases in Drupal http://178.63.27.54:8080/statictangents/2008/01/04/multiple-databases-in-drupal/ Random tangents Fri, 05 Mar 2010 18:17:44 +0000 hourly 1 By: Mark Dennehy http://178.63.27.54:8080/statictangents/2008/01/04/multiple-databases-in-drupal/comment-page-1/#comment-27 Wed, 13 May 2009 16:42:09 +0000 http://stochasticgeometry.wordpress.com/2008/01/04/multiple-databases-in-drupal/#comment-27 In reply to architect.

No, my error, I missed that caveat.

]]>
By: architect http://178.63.27.54:8080/statictangents/2008/01/04/multiple-databases-in-drupal/comment-page-1/#comment-26 Wed, 13 May 2009 16:36:38 +0000 http://stochasticgeometry.wordpress.com/2008/01/04/multiple-databases-in-drupal/#comment-26 Hi,
It states here http://drupal.org/node/18429

This only works with two databases of the same type. For example the following code will not work.

Are you proposing a different process?

]]>
By: Mark Dennehy http://178.63.27.54:8080/statictangents/2008/01/04/multiple-databases-in-drupal/comment-page-1/#comment-25 Wed, 13 May 2009 14:01:12 +0000 http://stochasticgeometry.wordpress.com/2008/01/04/multiple-databases-in-drupal/#comment-25 In reply to architect.

I don’t see why not, just use the DSN to specify one as a mysql:// database and the other as a postgres:// database.

]]>
By: architect http://178.63.27.54:8080/statictangents/2008/01/04/multiple-databases-in-drupal/comment-page-1/#comment-24 Tue, 12 May 2009 03:13:52 +0000 http://stochasticgeometry.wordpress.com/2008/01/04/multiple-databases-in-drupal/#comment-24 Hi,
Is it possible to allow drupal to access different databases? One MySQL and one postgreSQL?

]]>
By: Mark Dennehy http://178.63.27.54:8080/statictangents/2008/01/04/multiple-databases-in-drupal/comment-page-1/#comment-23 Wed, 06 Feb 2008 18:45:07 +0000 http://stochasticgeometry.wordpress.com/2008/01/04/multiple-databases-in-drupal/#comment-23 And of course it does, but there are some caveats – you should call db_set_active(‘default’) immediately on finishing your db_query() call or calls, as a few drupal functions access things in the main database and calling l() can cause all manner of fun errors if you’ve not switched back yet.

]]>