Table and its count - MySQL April 12, 2020 To get the number of rows in all tables in MySQL database, use this query. SELECT table_name, table_rows FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA = 'databaseName; Read more