By Flplsx on
Until recently, I have just used MAMP for development and have successfully moved finished sites to a remote server. I tried using the Acquia stack instead, for quicker dev time, and I loved it until I tried uploading my sites.
Curiously, the settings.php file for my site contains the default database settings: $db_url = 'mysql://username:password@localhost/databasename';
Where do I change these settings, then, to point my site to the right database? I tried adjusting the settings at the bottom that Acquia generates. No matter what I change, I always get the same thing upon loading the site: the install screen.
Thanks in advance
Comments
=
I'm not sure I understand your question fully, but have you tried manually entering the information in settings.php, then saving the file?
Check the sites directory
This will happen if Drupal is referencing the sites/default/settings.php directory but your settings are actually in a different directory (such as the one used by DAMP which might be something by sites/default/localhost/settings.php).
--
sorry, let me clarify. The
sorry, let me clarify.
The relevant section of the settings.php file looks exactly like this (copied/pasted):
Yet the site functions and can reference the correct database. Obviously, this isn't the place where Drupal is reading the database info from.
Previously, using MAMP, this section had the correct mysql username, password, etc and I could change it manually if I changed the database name. Acquia Drupal apparently sets things up differently. I'm trying to figure out where this info is.
Thanks for the replies guys, hopefully this is a bit more clear!