1、SELECT table_name, (
SELECT COUNT(*)
FROM table_name
) AS record_count
FROM information_schema.tables
WHERE table_schema = 'your_database_name';
2、
SELECT table_name, (
SELECT COUNT(*)
FROM table_schema.table_name
) AS record_count
FROM information_schema.tables
WHERE table_schema = 'your_database_name'
GROUP BY table_name;