SELECT COUNT(*) TABLES, table_schema FROM information_schema.TABLES WHERE table_schema ='test' GROUP BY table_schema;
test 这个是你的数据库名
SELECT COUNT(*) TABLES, table_schema FROM information_schema.TABLES WHERE table_schema ='test' GROUP BY table_schema;
test 这个是你的数据库名