Added MySQL retry.