一、用于统计查数据库上的各个表记录是否一致的数量
use information_schema;
select table_name,table_rows from tables where TABLE_SCHEMA = ‘你的数据库名‘ order by table_rows desc;
二、导出结果如下

三、基于以上语句,分别在主库与从库之间执行,并导出到EXCEL表,进行差异对比

一、用于统计查数据库上的各个表记录是否一致的数量
use information_schema;
select table_name,table_rows from tables where TABLE_SCHEMA = ‘你的数据库名‘ order by table_rows desc;

