mariadb-query-digest for MariaDB Tools
This page is part of MariaDB's Documentation.
The parent of this page is: Command-Line Interfaces for MariaDB Tools
Topics on this page:
Overview
The mariadb-query-digest
utility.
mariadb-query-digest Options for MariaDB Tools
Option | Argument | Description |
---|---|---|
Prompt for a password when connecting to MariaDB | ||
string | List of attribute|alias,etc (default db|Schema) | |
integer | A sanity limit for attribute values (default 0) | |
string | Default character set | |
string | Read this comma-separated list of config files; if specified, this must be the first option on the command line | |
Continue parsing even if there is an error ( default yes). Disable using: --nocontinue-on-error | ||
Create the --history table if it does not exist ( default yes). Disable using: --nocreate-history-table | ||
Create the --review table if it does not exist ( default yes). Disable using: --nocreate-review-table | ||
Fork to the background and detach from the shell | ||
string | Connect to this database | |
string | Only read mariadb options from the given file | |
string | Two Perl regex patterns to capture pseudo- attributes embedded in queries | |
string | Explain items when there are more or fewer than expected (default 5,10) | |
DSN | Run EXPLAIN for the sample query with this DSN and print results | |
string | Discard events for which this Perl code doesn't return true | |
string | Which attribute of the events to group by ( default fingerprint) | |
Show help and exit | ||
DSN | Save metrics for each query class in the given table. mariadb-query-digest saves query metrics ( query time, lock time, etc.) to this table so you can see how query classes change over time | |
string | Connect to host | |
string | Do not aggregate these attributes (default arg, cmd, insert_ | |
string | If missing, inherit these attributes from the last event that had them (default db,ts) | |
float | How frequently to poll the processlist, in seconds (default .1) | |
integer | How many times to iterate through the collect- and-report cycle (default 1) | |
string | Limit output to the given percentage or count ( default 95%:20) | |
string | Print all output to this file when daemonized | |
integer | Trim host names in reports to this length. 0=Do not trim host names (default 10) | |
integer | Trim lines to this length. 0=Do not trim lines ( default 74) | |
string | Sort events by this attribute and aggregate function (default Query_ | |
string | Report outliers by attribute:percentile:count ( default Query_ | |
string | How to format and print the query analysis results (default report) | |
string | Password to use when connecting | |
string | Create the given PID file | |
integer | Port number to use for connection | |
Preserve numbers in database/table names when fingerprinting queries | ||
DSN | Poll this DSN's processlist for queries, with -- interval sleep between | |
string | Print progress reports to STDERR (default time, 30) | |
time | Wait this long for an event from the input; 0 to wait forever (default 0). Optional suffix s= seconds, m=minutes, h=hours, d=days; if no suffix, s is used. | |
Print query analysis reports for each --group-by attribute (default yes). Disable using: --noreport | ||
Report all queries, even ones that have been reviewed | ||
string | Print these sections of the query analysis report (default rusage,date,hostname,files, header,profile,query_ | |
string | Chart the distribution of this attribute's values (default Query_ | |
string | If specified, the tool writes the last file offset, if there is one, to the given filename | |
DSN | Save query classes for later review, and don't report already reviewed classes | |
time | How long to run for each --iterations. Optional suffix s=seconds, m=minutes, h=hours, d=days; if no suffix, s is used. | |
string | Set what the value of --run-time operates on ( default clock) | |
integer | Filter out all but the first N occurrences of each query | |
string | Set the MariaDB variables in this comma- separated list of variable=value pairs | |
string | Show all values for these attributes | |
string | Parse only queries newer than this value (parse queries since this date) | |
string | Sets the password to be used to connect to the slaves | |
string | Sets the user to be used to connect to the slaves | |
string | Socket file to use for connection | |
Show a timeline of events | ||
string | The type of input to parse (default slowlog) | |
string | Parse only queries older than this value (parse queries until this date) | |
string | User for login if not current user | |
string | Report the number of variations in these attributes' values | |
Show version and exit | ||
Output a trailing "\G" in the reported SQL queries (default yes). Disable using: --novertical-format | ||
string | This option tells mariadb-query-digest which server IP address and port (like "10.0.0.1: 3306") to watch when parsing tcpdump (for --type tcpdump); all other servers are ignored |