Where are the db settings on Windows and what is the "database host"?

Where are the db settings on Windows and what is the "database host"?

4 posts / 0 new
Last post
jc2121@gmail.com's picture
jc2121
Points: 0
Where are the db settings on Windows and what is the "database host"?

Hi, I'm trying to find the include file in the section of settings.php. I've searched my whole desktop, but can't be found. Using Windows 7 64-bit. Specifically, I'm looking for the database settings.

Also, when upgrading a site to Drupal 8, it asks for the "database host". Is this just "localhost"? Should the port be added?

Status: 
Unresolved
jc2121@gmail.com's picture
jc2121
Points: 0

I found the answers to both questions. I found the include file at C:\Documents and Settings\MyName\.acquia\DevDesktop. In the include file I found the answer to my second question. I was doing a drupal upgrade and needed to specify the database host. The include file showed me that I should use the localhost ip (127.0.0.1) and then in the advanced section, specify the port which is in the include file. I hope this helps someone else someday :)

erlee2005@gmail.com's picture
erlee2005
Points: 0

I have asked the same question as you.. looks like settings.php is obsolete (?). The db settings are all in the .loc file
Makes migrating the desktop to servers more confusing. multiple local sites means multiple.loc files
Also the Drupal admin/report will flag an error associated with the definition settings within settings.php - but why? settings.php is no longer relevant...

wes.maidment@gmail.com's picture
wes.maidment
Points: 0

The settings.php is still relevant on your local machine - the .loc simply handles the basic connections for the cloned site. You can still configure additional local database connections and other $conf items via the settings.php.

You can of course bypass the local .dd settings (comment them out/delete) if needed and create the connection to the same db manually.