You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
it will have an information_schema.TABLES entry with data_free that equals 0.
> select TABLE_NAME, DATA_FREE from information_schema.TABLES WHERE TABLE_SCHEMA="test" AND TABLE_NAME LIKE "user";
+------------+-----------+
| TABLE_NAME | DATA_FREE |
+------------+-----------+
| user | 0 |
+------------+-----------+
it might have a completely different data_free value which currently will confuse Cadfael into reporting that it is an empty file but has had records previously:
> select TABLE_NAME, DATA_FREE from information_schema.TABLES WHERE TABLE_SCHEMA="test" AND TABLE_NAME LIKE "user";
+------------+-----------+
| TABLE_NAME | DATA_FREE |
+------------+-----------+
| user | 5242880 |
+------------+-----------+
This data_free value is determined by:
> SELECT TABLESPACE_NAME, DATA_FREE FROM INFORMATION_SCHEMA.FILES WHERE TABLESPACE_NAME LIKE 'innodb_system';
+-----------------+-----------+
| TABLESPACE_NAME | DATA_FREE |
+-----------------+-----------+
| innodb_system | 5242880 |
+-----------------+-----------+
The text was updated successfully, but these errors were encountered:
SELECT*FROMinformation_schema.innodb_tablesAS ita
JOINinformation_schema.innodb_tablespacesAS its ON (ita.space=its.space)
WHEREita.name="mysql/component";
MySQL 5.6/5.7
SELECT*FROMinformation_schema.innodb_sys_tablesAS ita
JOINinformation_schema.innodb_sys_tablespacesAS its ON (ita.space=its.space)
WHEREita.name="mysql/component";
When a table is created normally like this:
it will have an
information_schema.TABLES
entry withdata_free
that equals0
.However if you create it in a tablespace:
it might have a completely different
data_free
value which currently will confuse Cadfael into reporting that it is an empty file but has had records previously:This data_free value is determined by:
The text was updated successfully, but these errors were encountered: