NAME mysql-genocide - Parallel operation on MySQL processlist SYNOPSIS mysql-genocide [OPTIONS] [FILTER] Options: -h, --help Show help. Connection: -h, --host=name Connect to host. -P, --port=# Port number to use for connection. -D, --database=name Database to use. -u, --user=name User for login if not current user. -p, --password=name Password to use when connecting to server. Filters: -e, --exclude Exclude queries by different criteria -s, --selects-only Exclude everything but selects -t, --min-time=# Exclude queries with exec time lower than # -T, --timeout Exclude queries with exec time lower than query time hint -l, --limit=# Only take first # lines -g, --placeholder Replace values in queries by placeholders -d, --distinct Only keep the first occurence of the same query --sort Sort result Actions: -L, --list Output list of queries -K, --kill Kill every matched threads -S, --stats Show some stats about processlist -i, --interval[=#] Repeat the command at regular interval OPTIONS --help Print a brief help message and exits. --host, --port, --database, --user, --password See mysql cli help for more information on those parameters. --exclude=[!]name Exclude from the running thread list queries matching the argument. This parameter can be repeated several times to exclude different kinds of queries. If you prefix the argument with an exclamation mark (!), all thread not matching this argument will be excluded. Allowed parameters are: select, insert, replace, update, delete, create, drop, alter Exclude SQL query which command is of the same name. write Exclude every SQL query doing write operation (insert, replace, update, delete). other Exclude SQL query which are none of the above type. sleep Exclude all sleeping threads system Exclude thread ran by the system (often used for replication threads) user= Exclude threads ran by given mysql username. db= Exclude threads using given database. state= Exclude threads in given state. See for the list of possible states command= Exclude threads using given command. See for the list of possible commands. --selects-only This is equivalent to: --exclude=write --exclude=other --exclude=sleep --exclude=system. --min-time=# Exclude queries with execution time lower than given parameter. --timeout Keep only queries with a timeout provided and with an execution time which exceeded this timeout. The timeout can be provided with the query in a comment like this: SELECT /* timeout:40 */ * FROM table; Timeout is expressed in second. --limit=# Take first # threads and excludes others. --placeholder Will try to make queries more generic by replacing all values by either "i" for numbers or "s" for strings. --distinct Keep only the first query from group of identical queries and exlude others. Note: If you use this option with --placeholder, queries that would differ only by values used will become identical. This is useful to distinct big type of queries. --sort[=name] Sort matched queries by parameter given as argument. Allowed parameters are as follow: concurrency or c Sort queries by most repeated ones. time or t Sort queries by longer execution time. --list[=template] Output the result to the terminal. The default output format can be changed by supplying a template with desired field. Available fields are: Id, User, Command, State, Db, Host, Time, Info, Group, Concurrency, QType, Timeout Default template is: