Posted By

jonathanpglick on 08/18/09


Tagged


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

umang_nine
tronx


Drupal Setup to use another database


 / Published in: PHP
 

  1. // settings.php
  2. $db_url['default'] = 'pgsql://user:pass@localhost/default_database';
  3. $db_url['another_db'] = 'pgsql://user:pass@localhost/another_database';
  4.  
  5.  
  6. // To use
  7. db_set_active('another_db');
  8. // do whatever
  9. db_set_active('default');

Report this snippet  

You need to login to post a comment.