Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
Exported a previously working database dump from Pantheon down to my local machine, attempted to view the migration overview page for a migration I'd set up through the UI on Pantheon locally and got the following error:
DatabaseDriverNotSpecifiedException: Driver not specified for this database connection: NavajoNationWashingtonOffice_legacy in Database::openConnection() (line 1682 of /Volumes/Macintosh HD/Users/robertson/Sites/new_nnwo/includes/database/database.inc).
I doubt this is particularly helpful, but here's what's in the migrate_group table:
a:6:{s:19:"encrypted_arguments";a:1:{i:0;s:15:"source_database";}s:14:"source_version";s:1:"6";s:17:"source_connection";s:35:"NavajoNationWashingtonOffice_legacy";s:15:"source_database";s:326:"a:3:{s:4:"text";s:224:"[...]";s:6:"method";s:14:"mcrypt_rij_256";s:8:"key_name";s:18:"drupal_private_key";}";s:13:"source_system";s:8:"Drupal 6";s:15:"format_mappings";a:3:{i:1;s:13:"filtered_html";i:2;s:9:"full_html";i:3;s:2:"-1";}}
[...] obviously replacing some encrypted gibberish that I probably don't want to share here. ;-)
Comments
Comment #1
mikeryanThe encryption of your credentials is performed using the drupal_private_key variable - if you copy a database between environments, and the key (typically set in settings.php) is different, then Migrate will not be able to decrypt the database credentials. Try
in both environments to confirm this. If they differ, you can set your local dev's private key to match the original and it should just work.
Comment #2
mikeryanThis should be documented.
Comment #3
mikeryanAdded to the FAQ at https://www.drupal.org/node/1012824#encrypted_credentials.