Ver originalselect sum(table_rows) total_regsfrom information_schema.`tables` twhere table_schema = 'nombredebase';