As it happens at times in the website development process the data needs to be transfered from one database to another (data export\import) both quickly and efficiently, and also in strict compliance with Drupal 7 procedures. This article is meant to cater for the instances mentioned above. Let’s consider the three options for performing the above transfer:
3. adding the third argument of the function db_select, db_insert, db_update, etc.
Now we will check up the default picture of settings.php in drupal 7 :
$databases = array ( //key 'default' => array ( //target 'default' => array ( 'database' => 'users', 'username' => 'root', 'password' => '', 'host' => 'localhost', 'port' => '', 'driver' => 'mysql', 'prefix' => '', ), ), );
As it is illustrated above, we are in a possession of both the key — default and template — also default.
This is the way Drupal 7 gets connected to the base by default as it had been set out in the course of installation procedures.