i've been learning Drupal 7 using Acquia DevDesktop and i have several sandbox type website running on my laptop but now i'm trying to access the databases from the command line. but in the settings.php almost the only that's not comment out are at the bottom, where it makes reference to inc.'s like this.

file_exists($_SERVER['DEVDESKTOP_DRUPAL_SETTINGS_DIR'] .          '/loc_rmywebsite_local.inc')) 
  require($_SERVER['DEVDESKTOP_DRUPAL_SETTINGS_DIR'] .     '/loc_mywebsite_local.inc');

but then when i do a search for these inc files locally on my laptop, nothing comes up, as if they don't exist. so One, where are these files? and two, find where the DB settings are for these local sites so i can start learning how use the command line, or maybe Drush.

yes, i should probably have written down these setting but didn't.

3 Answers 3


You can find DB Settings of Acquia DevDesktop locally at following location


In above path Replace YOUR_USER_NAME with apropriate user name that you login on system. This path for Windows 7.

  • thanks. but i cannot find. Mac seems to be quite different. i should be able to find if i just keep looking.
    – TopTomato
    Jun 11, 2014 at 14:17
  • i just did a var dump and see the pathname is the same as what you printed. i guess i cannot find because the folder .acquia is a hidden file.
    – TopTomato
    Jun 11, 2014 at 14:31
  • i found the files but curiously, the password is an empty string in the DB array settings. though everything else is set. also in the command if i write mysql -u username -p it says command not found.
    – TopTomato
    Jun 11, 2014 at 14:38

For Mac, open Terminal. By default it opens in your user home directory (/Users/"username").

The settings you are looking for are on a file in a hidden ".acquia" folder inside your user home directory.

On a freshly open Terminal window (meaning, from your user home directory, unless you changed its settings), just do the following to list the settings files for the Acquia Dev Desktop environments on your local computer:

ls .acquia/DevDesktop/DrupalSettings

Once you see the one you want, you can display its content using the cat command, for example if the file is named cld_devcloud_myveryownshinydrupal_dev_default.inc, then just type:

cat .acquia/DevDesktop/DrupalSettings/cld_devcloud_civila7_dev_default.inc

In any case, the full path you are looking for is:


Hope this helps. It took me a while to find it too and Acquia documentation makes no mention at all (or at least none that I could find).

  • Why the password field is empty?
    – Umair
    Sep 7, 2017 at 14:42

Couple of things.

For Windows, the DB settings are in the dir Rupesh listed. Very similar on a Mac as well:


There is a file in this directory for each site you have installed on Dev Desktop. Do not edit this file! However you can use this file to figure out where you database is, the name, etc.

While you can use drush to do a database backup, you can also use Dev Desktop to export a site archive which includes a sql file.

  • thanks, i'm trying to click the 'Answer is useful' but it won't let me
    – TopTomato
    Jun 15, 2014 at 3:35
  • i'd found those earlier, after realizing one folder is hidden. but curious why those DB arrays have no password? weird
    – TopTomato
    Jun 15, 2014 at 3:36
  • It's local dev so I assume they make the password optional.
    – Jon Reid
    Jun 16, 2014 at 11:36
  • @JonReid Why the password field is empty?
    – Umair
    Sep 7, 2017 at 14:42

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.