execute mysql_check only if a query fails.