cleanup mysql credentials on error