You can use methods such as MySQL dump and restore, MySQL Workbench Export and Import, or Azure Database Migration Service to migrate your MySQL databases to Azure Database for MySQL flexible server.
-- Foreign keys restrict structural changes on referenced columns. Therefore, the foreign key is dropped temporarily to allow adding AUTO_INCREMENT to the primary key. -- After the modification, the ...