MySQL restore process fixes