Stop and start mysql during branching.