Migrating large online mysql database may rise out of memory errors