mysql progress: error handling