1MYSQL_FIND_ROWS             MariaDB Database System            MYSQL_FIND_ROWS
2
3
4

NAME

6       mysql_find_rows - extract SQL statements from files
7

SYNOPSIS

9       mysql_find_rows [options] [file_name ...]
10

DESCRIPTION

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

SEE ALSO

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

AUTHOR

79       MariaDB Foundation (http://www.mariadb.org/).
80
81
82
83MariaDB 10.5                     27 June 2019                  MYSQL_FIND_ROWS
Impressum