mariadb-kill 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-kill
utility.
mariadb-kill Options for MariaDB Tools
Option | Argument | Description |
---|---|---|
time | Match query class if any query has been running for longer than this time. "Longer than" means that if you specify 10, for example, the class will only match if there's at least one query that has been running for greater than 10 seconds. Optional suffix s=seconds, m=minutes, h=hours, d=days; if no suffix, s is used. | |
Prompt for a password when connecting to MariaDB | ||
time | Match queries that have been running for longer than this time. Optional suffix s=seconds, m=minutes, h= hours, d=days; if no suffix, s is used. | |
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 | |
Create the --log-dsn table if it does not exist | ||
Fork to the background and detach from the shell | ||
string | The database to use for the connection | |
string | Only read MariaDB options from the given file | |
time | Match query class if each query has been running for longer than this time. "Longer than" means that if you specify 10, for example, the class will only match if each and every query has been running for greater than 10 seconds. Optional suffix s=seconds, m=minutes, h=hours, d=days; if no suffix, s is used. | |
string | Execute this command when a query matches | |
string | Discard events for which this Perl code doesn't return true | |
string | Apply matches to each class of queries grouped by this SHOW PROCESSLIST column | |
Show help and exit | ||
string | Connect to host (default localhost) | |
time | Match queries that have been idle/sleeping for longer than this time. Optional suffix s=seconds, m= minutes, h=hours, d=days; if no suffix, s is used. | |
string | Ignore queries whose Command matches this Perl regex | |
string | Ignore queries whose db (database) matches this Perl regex | |
string | Ignore queries whose Host matches this Perl regex | |
string | Ignore queries whose Info (query) matches this Perl regex | |
Don't kill mariadb-kill's own connection (default yes). Disable using: --noignore-self | ||
string | Ignore queries whose State matches this Perl regex ( default Locked) | |
string | Ignore queries whose user matches this Perl regex | |
time | How often to check for queries to kill. Optional suffix s=seconds, m=minutes, h=hours, d=days; if no suffix, s is used. | |
Kill the connection for matching queries | ||
string | group: Actions (default Query) | |
Kill matching queries | ||
string | Print all output to this file when daemonized | |
DSN | Store each query killed in this DSN | |
Match all queries that are not ignored | ||
string | Match only queries whose Command matches this Perl regex | |
string | Match only queries whose db (database) matches this Perl regex | |
string | Match only queries whose Host matches this Perl regex | |
string | Match only queries whose Info (query) matches this Perl regex | |
string | Match only queries whose State matches this Perl regex | |
string | Match only queries whose User matches this Perl regex | |
string | Password to use when connecting | |
string | Create the given PID file | |
integer | Port number to use for connection | |
Print a KILL statement for matching queries; does not actually kill queries | ||
integer | Match query class if it has at least this many queries | |
Prints an ID of the query that was just killed | ||
Denotes the instance in question is on Amazon RDS | ||
Allow matching and killing replication threads | ||
time | How long to run before exiting. Optional suffix s= seconds, m=minutes, h=hours, d=days; if no suffix, s is used. | |
string | Exit if this file exists (default /tmp/mariadb-kill- sentinel) | |
string | Set the MariaDB variables in this comma-separated list of variable=value pairs | |
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 | |
Stop running instances by creating the --sentinel file | ||
Remove SQL comments from queries in the Info column of the PROCESSLIST (default yes). Disable using: --nostrip-comments | ||
string | Files with processlist snapshots to test matching options against | |
string | User for login if not current user | |
Print information to STDOUT about what is being done | ||
Show version and exit | ||
string | Which of the matching queries in each class will be killed (default oldest) | |
time | Wait after killing a query, before looking for more to kill. Optional suffix s=seconds, m=minutes, h= hours, d=days; if no suffix, s is used. | |
time | Wait before killing a query. Optional suffix s= seconds, m=minutes, h=hours, d=days; if no suffix, s is used. |