1、统计数据库中总记录条数
select sum(table_rows) from tables where TABLE_SCHEMA = 数据库名称;
2、统计mysql 数据库中所有表的记录数
select table_name,table_rows from information_schema.tables where table_schema=数据库名称 order by table_rows desc;