During my update from Civi 4.2 to 4.7 I let it fill in database information that was not correct it connected to the cms database and not the Civi database from the previous install. Is there a file I can edit to have it connect to the old database?

1 Answer 1


You should edit the civicrm.settings.php file. The location of this file depends on your content management system.

Drupal: sites/default/civicrm.settings.php

WordPress: wp-content/uploads/civicrm/civicrm.settings.php

Joomla: administrator/components/com_civicrm/civicrm.settings.php

You may find this related post helpful: How do I change the CiviCRM Database name

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.