1MARIADB-DUMPSLOW(1)         MariaDB Database System        MARIADB-DUMPSLOW(1)
2
3
4

NAME

6       mariadb-dumpslow - Summarize slow query log files (mysqldumpslow is now
7       a symlink to mariadb-dumpslow)
8

SYNOPSIS

10       mysqldumpslow [options] [log_file ...]
11

DESCRIPTION

13       The MariaDB slow query log contains information about queries that take
14       a long time to execute.  mysqldumpslow parses MariaDB slow query log
15       files and prints a summary of their contents.
16
17       Normally, mysqldumpslow groups queries that are similar except for the
18       particular values of number and string data values. It “abstracts”
19       these values to N and ´S´ when displaying summary output. The -a and -n
20       options can be used to modify value abstracting behavior.
21
22       Invoke mysqldumpslow like this:
23
24           shell> mysqldumpslow [options] [log_file ...]
25
26       mysqldumpslow supports the following options.
27
28--help
29
30           Display a help message and exit.
31
32-a
33
34           Do not abstract all numbers to N and strings to ´S´.
35
36--debug, -d
37
38           Run in debug mode.
39
40-g pattern
41
42           Consider only queries that match the (grep-style) pattern.
43
44-h host_name
45
46           Host name of MariaDB server for *-slow.log file name. The value can
47           contain a wildcard. The default is * (match all).
48
49-i name
50
51           Name of server instance (if using mysql.server startup script).
52
53-l
54
55           Do not subtract lock time from total time.
56
57-n N
58
59           Abstract numbers with at least N digits within names.
60
61-r
62
63           Reverse the sort order.
64
65-s sort_type
66
67           How to sort the output. The value of sort_type should be chosen
68           from the following list:
69
70           •   t, aa: Sort by rows affected or average rows affected
71
72           •   l, ae: Sort by rows examined or aggregate rows examined
73
74           •   l, at: Sort by query time or average query time
75
76           •   l, al: Sort by lock time or average lock time
77
78           •   s, as: Sort by rows sent or average rows sent
79
80           •   c: Sort by count
81
82-t N
83
84           Display only the first N queries in the output.
85
86--verbose, -v
87
88           Verbose mode. Print more information about what the program does.
89
90       Example of usage:
91
92           shell> mysqldumpslow
93           Reading mysql slow query log from /usr/local/mysql/data/mysqld51-apple-slow.log
94           Count: 1  Time=4.32s (4s)  Lock=0.00s (0s)  Rows=0.0 (0), root[root]@localhost
95            insert into t2 select * from t1
96           Count: 3  Time=2.53s (7s)  Lock=0.00s (0s)  Rows=0.0 (0), root[root]@localhost
97            insert into t2 select * from t1 limit N
98           Count: 3  Time=2.13s (6s)  Lock=0.00s (0s)  Rows=0.0 (0), root[root]@localhost
99            insert into t1 select * from t1
100
102       Copyright 2007-2008 MySQL AB, 2008-2010 Sun Microsystems, Inc.,
103       2010-2019 MariaDB Foundation
104
105       This documentation is free software; you can redistribute it and/or
106       modify it only under the terms of the GNU General Public License as
107       published by the Free Software Foundation; version 2 of the License.
108
109       This documentation is distributed in the hope that it will be useful,
110       but WITHOUT ANY WARRANTY; without even the implied warranty of
111       MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
112       General Public License for more details.
113
114       You should have received a copy of the GNU General Public License along
115       with the program; if not, write to the Free Software Foundation, Inc.,
116       51 Franklin Street, Fifth Floor, Boston, MA 02110-1335 USA or see
117       http://www.gnu.org/licenses/.
118
119

SEE ALSO

121       For more information, please refer to the MariaDB Knowledge Base,
122       available online at https://mariadb.com/kb/
123

AUTHOR

125       MariaDB Foundation (http://www.mariadb.org/).
126
127
128
129MariaDB 10.5                     27 June 2019              MARIADB-DUMPSLOW(1)
Impressum