1MARIADB-FIND-ROWS           MariaDB Database System          MARIADB-FIND-ROWS
2
3
4

NAME

6       mariadb-find-rows - extract SQL statements from files (mysql_find_rows
7       is now a symlink to mariadb-find-rows)
8

SYNOPSIS

10       mysql_find_rows [options] [file_name ...]
11

DESCRIPTION

13       mysql_find_rows reads files containing SQL statements and extracts
14       statements that match a given regular expression or that contain USE
15       db_name or SET statements. The utility was written for use with update
16       log files (as used prior to MySQL 5.0) and as such expects statements
17       to be terminated with semicolon (;) characters. It may be useful with
18       other files that contain SQL statements as long as statements are
19       terminated with semicolons.
20
21       Invoke mysql_find_rows like this:
22
23           shell> mysql_find_rows [options] [file_name ...]
24
25       Each file_name argument should be the name of file containing SQL
26       statements. If no file names are given, mysql_find_rows reads the
27       standard input.
28
29       Examples:
30
31           mysql_find_rows --regexp=problem_table --rows=20 < update.log
32           mysql_find_rows --regexp=problem_table  update-log.1 update-log.2
33
34       mysql_find_rows supports the following options:
35
36--help, --Information
37
38           Display a help message and exit.
39
40--regexp=pattern
41
42           Display queries that match the pattern.
43
44--rows=N
45
46           Quit after displaying N queries.
47
48--skip-use-db
49
50           Do not include USE db_name statements in the output.
51
52--start_row=N
53
54           Start output from this row.
55
57       Copyright 2007-2008 MySQL AB, 2008-2010 Sun Microsystems, Inc.,
58       2010-2019 MariaDB Foundation
59
60       This documentation is free software; you can redistribute it and/or
61       modify it only under the terms of the GNU General Public License as
62       published by the Free Software Foundation; version 2 of the License.
63
64       This documentation is distributed in the hope that it will be useful,
65       but WITHOUT ANY WARRANTY; without even the implied warranty of
66       MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
67       General Public License for more details.
68
69       You should have received a copy of the GNU General Public License along
70       with the program; if not, write to the Free Software Foundation, Inc.,
71       51 Franklin Street, Fifth Floor, Boston, MA 02110-1335 USA or see
72       http://www.gnu.org/licenses/.
73
74

SEE ALSO

76       For more information, please refer to the MariaDB Knowledge Base,
77       available online at https://mariadb.com/kb/
78

AUTHOR

80       MariaDB Foundation (http://www.mariadb.org/).
81
82
83
84MariaDB 10.5                     27 June 2019                MARIADB-FIND-ROWS
Impressum