mysql script fix