Is there a way to migrate the saved Import/Export Mappings to a different CiviCRM installation? It seems there is no way to export them. I already tried copying the .php files located at /bin/migrate, but the settings did not show up when I tried to import something in the new installation.
Assuming your location types and phone types etc have the same ids, you should just be able to copy over the two tables,
mysqldump <dbname> civicrm_mapping civicrm_mapping_field > somefile and then import the file into the other site's mysql database. But note that will **** OVERWRITE **** any mappings that you had already set up in the new site.
As noted in the comments there's some constraints so there's some extra steps:
- If using mysqldump, use
--no-create-info. In phpmyadmin uncheck the option to drop/create tables.
- In the new system do
TRUNCATE TABLE civicrm_mapping_fieldthen
TRUNCATE TABLE civicrm_mapping.
- Import civicrm_mapping first, then civicrm_mapping_field.