Return to Snippet

Revision: 16891
at August 18, 2009 15:09 by jonathanpglick


Initial Code
// settings.php
$db_url['default'] = 'pgsql://user:pass@localhost/default_database';
$db_url['another_db'] = 'pgsql://user:pass@localhost/another_database';


// To use
db_set_active('another_db');
    // do whatever
db_set_active('default');

Initial URL

                                

Initial Description

                                

Initial Title
Drupal Setup to use another database

Initial Tags

                                

Initial Language
PHP