Migrating from MySQL to Postgresql

Regarding contacts and calendars you could use calcardbackup to export them as .ics/.vcf files and the reimport them to the new installation: