Julian
Julian

Reputation: 4666

MySQL Workbench displays the wrong table rows size

MySQL Workbench is not displaying the right table row size. Please see the screenshot, and take a look at "Table rows".

enter image description here

MySQL Workbench shows at "Table rows" 0. This is clearly wrong. See Action output:

09:21:37    SELECT * FROM mydb.mytable  280672 row(s) returned  0.031 sec / 24.969 sec

The question: why is Mysql Workbench displaying the wrong table row size?

I assume that the big table size is the cause for the problem.

Upvotes: 0

Views: 375

Answers (2)

Hashim Aziz
Hashim Aziz

Reputation: 6092

I had already tried Julian's answer and it didn't do anything to update the rows, probably because my table was about 8 million rows. In the end I had to remove the limit and select all the rows - this will show a rows returned count. This isn't ideal for obvious reasons, and is almost definitely a Workbench bug, but it seems it's currently the only way to accurately verify that a database has all its rows in Workbench.

Upvotes: 0

Julian
Julian

Reputation: 4666

I solved this by clicking on the "Analyze Table" button, screenshot:

enter image description here

It updated the table details info, screenshot:

enter image description here

Upvotes: 1

Related Questions