1
by brian
clean slate |
1 |
--exec $MYSQL test -e "show processlist" > $MYSQLTEST_VARDIR/tmp/bl_dump_thread_id |
2 |
--disable_warnings |
|
3 |
drop table if exists t999; |
|
4 |
--enable_warnings |
|
5 |
# Create a table to hold the process list |
|
6 |
create temporary table t999( |
|
7 |
id int, |
|
8 |
user char(255), |
|
9 |
host char(255), |
|
10 |
db char(255), |
|
11 |
Command char(255), |
|
12 |
time int, |
|
13 |
State char(255), |
|
14 |
info char(255) |
|
15 |
);
|
|
16 |
# Load processlist into table, headers will create seom warnings |
|
17 |
--disable_warnings |
|
18 |
--replace_result $MYSQLTEST_VARDIR "." |
|
19 |
eval LOAD DATA INFILE "$MYSQLTEST_VARDIR/tmp/bl_dump_thread_id" into table t999; |
|
20 |
--enable_warnings |
|
21 |
let $id = `select Id from t999 where Command="Binlog Dump"`; |
|
22 |
drop table t999; |