fix MySQL backend error reporting