You can export the database:
mysqldump -u [db_username] --password=[db_password] "[db_name]" > "[db_name].sql"
Then you can use the tool of your choice to remove the unique ids:
sed -i -e 's/unique-id//g' [db_name].sql
Then import the resulting SQL file.