Match only queries whose Command matches this Perl regex.
常用的Command如下:
Query
Sleep
Binlog Dump
Connect
Delayed insert
Execute
Fetch
Init DB
Kill
Prepare
Processlist
Quit
Reset stmt
Table Dump
See http://dev.mysql.com/doc/refman/5.1/en/thread-commands.html for a full list and description of Command values.
—match-db
1
2
3
type: string; group: Query Matches
Match only queries whose db (database) matches this Perl regex.
—match-host
1
2
3
4
5
type: string; group: Query Matches
Match only queries whose Host matches this Perl regex.
The Host value often time includes the port like “host:port”.
—match-info
1
2
3
4
5
type: string; group: Query Matches
Match only queries whose Info (query) matches this Perl regex.
The Info column of the processlist shows the query that is being executed or NULL ifno query is being executed.
—match-state
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
ype: string; group: Query Matches
Match only queries whose State matches this Perl regex.
常用state如下:
Locked
login
copy to tmp table
Copying to tmp table
Copying to tmp table on disk
Creating tmp table
executing
Readingfrom net
Sending data
Sortingfor order
Sortingresult
Table lock
Updating
See http://dev.mysql.com/doc/refman/5.1/en/general-thread-states.html for a full list and description ofState values.
—match-user
1
2
3
type: string; group: Query Matches
Match only queries whose User matches this Perl regex.
—replication-threads
1
2
3
4
5
6
7
8
group: Query Matches
Allow matching and killing replication threads.
Bydefault, matches donot apply to replication threads; i.e. replication threads are completely ignored. Specifying this option allows matches to match (and potentially kill) replication threads on masters and slaves.
默认,是不允许kill 复制线程的,除非显示指定了这个选项
—test-matching
1
2
3
4
5
6
7
type: array; group: Query Matches
Files with processlist snapshots to test matching options against. Since the matching options can be complex, you can save snapshots of processlist in files, then test matching options against queries in those files.
This option disables --run-time, --interval, and --[no]ignore-self.