Detect empty databases
macbre opened this issue · 0 comments
macbre commented
mysql> select table_schema, count(*) as tables from information_schema.tables where table_type = 'BASE TABLE' group by table_schema;
+--------------------+--------+
| table_schema | tables |
+--------------------+--------+
| index_digest | 33 |
| mysql | 31 |
| performance_schema | 87 |
| sys | 1 |
+--------------------+--------+
4 rows in set (0,01 sec)
--check-empty-databases
- pass this flag to enable empty_database
check