2007-02-26 09:16:22 +01:00
|
|
|
--exec $MYSQL test -e "show processlist" > $MYSQLTEST_VARDIR/tmp/bl_dump_thread_id
|
2006-04-07 19:44:37 +02:00
|
|
|
--disable_warnings
|
|
|
|
drop table if exists t999;
|
|
|
|
--enable_warnings
|
2007-02-26 09:16:22 +01:00
|
|
|
# Create a table to hold the process list
|
|
|
|
create temporary table t999(
|
|
|
|
id int,
|
|
|
|
user char(255),
|
|
|
|
host char(255),
|
|
|
|
db char(255),
|
|
|
|
Command char(255),
|
|
|
|
time int,
|
|
|
|
State char(255),
|
|
|
|
info char(255)
|
|
|
|
);
|
|
|
|
# Load processlist into table, headers will create seom warnings
|
|
|
|
--disable_warnings
|
2006-04-09 12:27:53 +02:00
|
|
|
--replace_result $MYSQLTEST_VARDIR "."
|
2006-04-07 19:44:37 +02:00
|
|
|
eval LOAD DATA INFILE "$MYSQLTEST_VARDIR/tmp/bl_dump_thread_id" into table t999;
|
2007-02-26 09:16:22 +01:00
|
|
|
--enable_warnings
|
|
|
|
let $id = `select Id from t999 where Command="Binlog Dump"`;
|
2006-04-07 19:44:37 +02:00
|
|
|
drop table t999;
|