Do an export from db1 and import into db2 with ignore=y.

You could create the indexes fresh in db2 after the import.

BTW, do not forget to analyze the schema.

HTH.