Is there any function preserved to extract database configuration inside of my code, something like
$db_user = drupal_get_dbuser();
$db_pass = drupal_get_dbpass();
...
...
Is there any function preserved to extract database configuration inside of my code, something
Share
The code for this is:
More detailed info and edge-cases can be found by reading the code of http://api.drupal.org/api/function/db_connect/6