| 1 |
--echo === information_schema.innodb_tables and innodb_tablespaces === |
| 2 |
--disable_query_log |
| 3 |
--replace_result #P# #p# #SP# #sp# |
| 4 |
--replace_regex /innodb_file_per_table.[0-9]+/innodb_file_per_table.##/ /fts_([0-9a-f_]+)([A-Z0-9_]+)/fts_aux\2/ |
| 5 |
|
| 6 |
SELECT t.name 'Table Name', |
| 7 |
IFNULL(s.name, 'innodb_system') 'Tablespace', |
| 8 |
t.flag 'Table Flags', |
| 9 |
t.n_cols 'Columns', |
| 10 |
t.row_format 'Row Format', |
| 11 |
t.zip_page_size 'Zip Size', |
| 12 |
t.space_type 'Space Type' |
| 13 |
FROM information_schema.innodb_tables t LEFT JOIN |
| 14 |
information_schema.innodb_tablespaces s |
| 15 |
ON t.space = s.space |
| 16 |
WHERE t.name not like 'mysql/%' |
| 17 |
AND t.name NOT LIKE 'sys/%' |
| 18 |
ORDER BY t.name; |
| 19 |
--enable_query_log |
| 20 |
|