/usr/bin/mariadb-find-rows Ver 1.02 Prints all SQL queries that matches a regexp or contains a 'use database' or 'set ..' command to stdout. A SQL query may contain newlines. This is useful to find things in a MariaDB update log. /usr/bin/mariadb-find-rows takes the following options: --help or --Information Shows this help --regexp=# Print queries that matches this. --start_row=# Start output from this row (first row = 1) --skip-use-db Don't include 'use database' commands in the output. --rows=# Quit after this many rows. Example: /usr/bin/mariadb-find-rows --regexp "problem_table" < update.log /usr/bin/mariadb-find-rows --regexp "problem_table" update-log.1 update-log.2