Replace SHOW TERSE by SELECT to avoid rows count limit.