mysql destroy fix