get_binlog_dump_thread_id.inc

来自「视频监控网络部分的协议ddns,的模块的实现代码,请大家大胆指正.」· INC 代码 · 共 23 行

INC
23
字号
--exec $MYSQL test -e "show processlist" > $MYSQLTEST_VARDIR/tmp/bl_dump_thread_id--disable_warningsdrop table if exists t999;--enable_warnings# Create a table to hold the process listcreate 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--replace_result $MYSQLTEST_VARDIR "."eval LOAD DATA INFILE "$MYSQLTEST_VARDIR/tmp/bl_dump_thread_id" into table t999;--enable_warningslet $id = `select Id from t999 where Command="Binlog Dump"`;drop table t999;

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?