update detection of mysql communication errors