Software⏱️ 3 min read📅 2026-06-15

How to Fix: `Calculate total row count` (icon of two green circled arrows) in DBeaver throws "Error executing error count", but manual choice of >200 rows works

DBeaver error when calculating total row count in MySQL, but manual input works

Quick Answer: Try using a smaller number of rows to avoid syntax errors

The 'Calculate total row count' feature in DBeaver is malfunctioning, causing an error message that affects users who rely on this function. The error occurs when attempting to execute the query with a large number of rows, resulting in a syntax error.

This issue can be frustrating for users who need to quickly determine the number of rows in a table. Fortunately, DBeaver provides alternative methods to resolve this problem.

🔍 Why This Happens

  • The primary cause of this error is a syntax issue related to the use of temporary tables in MySQL. When DBeaver attempts to calculate the total row count using the 'Calculate total row count' feature, it may not properly handle large datasets or temporary tables, leading to a syntax error.
  • An alternative reason for this error could be related to the version of MySQL being used. In some cases, older versions of MySQL may have specific syntax requirements that DBeaver is not aware of, resulting in the error.

🛠️ Step-by-Step Verified Fixes

Disable the 'Calculate total row count' feature and use an alternative method

  1. Step 1: To resolve this issue, disable the 'Calculate total row count' feature by unchecking the box next to it in the query editor.
  2. Step 2: Instead, use the manual calculation method by entering a specific number of rows (e.g., 200) and clicking on the 'OK' button. This will allow you to view the correct row count without encountering the syntax error.
  3. Step 3: If you need to calculate the total row count for a large dataset, consider using an alternative tool or method that is better suited for handling large datasets.

Update DBeaver with the latest version

  1. Step 1: To resolve this issue, update DBeaver to the latest version available. This may include patching or updating the MySQL connector used by DBeaver.
  2. Step 2: After updating DBeaver, restart the application and attempt to calculate the total row count again using the 'Calculate total row count' feature.

🎯 Final Words

By disabling the 'Calculate total row count' feature and using an alternative method or updating DBeaver to the latest version, users can resolve the syntax error and accurately determine the number of rows in their tables.

Did this fix your problem?

If not, try searching for specific error codes.

🔍 Search Error Database

❓ Frequently Asked Questions