MySQLstatus variable Com_stmt_xxx

All of the Com_stmt_xxx variables areincreased even if a prepared statement argument is unknown or an error occurredduring execution. In other words, their values correspond to the number ofrequests issued, not to the number of requests successfully completed.

所有的Com_stmt_xxx变量都会增加,即使预编译语句的参数未知或者在执行中发生错误。换句话说,他们的值与请求发起的次数,不是与请求执行成功的次数对应。

The Com_stmt_xxx status variables are asfollows:

Com_stmt_prepare

Com_stmt_execute

Com_stmt_fetch

Com_stmt_send_long_data

Com_stmt_reset

Com_stmt_close

Those variables stand for preparedstatement commands. Their names refer to the COM_xxx command set used in thenetwork layer. In other words, their values increase whenever preparedstatement API calls such as mysql_stmt_prepare(), mysql_stmt_execute(), and soforth are executed. However, Com_stmt_prepare, Com_stmt_execute andCom_stmt_close also increase for PREPARE, EXECUTE, or DEALLOCATE PREPARE,respectively. Additionally, the values of the older statement counter variablesCom_prepare_sql, Com_execute_sql, and Com_dealloc_sql increase for the PREPARE,EXECUTE, and DEALLOCATE PREPARE statements. Com_stmt_fetch stands for the totalnumber of network round-trips issued when fetching from cursors.

那些变量表示预编译语句命令。他们的名字涉及到Com_stmt_xxx命令在网络层使用。换句话说,无论什么时候预编译语句API调用mysql_stmt_prepare(), mysql_stmt_execute()执行时,他们的值都会增加。然而Com_stmt_prepare, Com_stmt_execute, Com_stmt_close 针对PREPARE,EXECUTE, or DEALLOCATE PREPARE也会增加。并且,旧的语句计数参数Com_prepare_sql, Com_execute_sql, Com_dealloc_sql针对PREPARE,EXECUTE, and DEALLOCATE PREPARE语句也会增加。Com_stmt_fetch代表提取游标时来回总共的次数。

Com_stmt_reprepare indicates the number oftimes statements were automatically reprepared by the server after metadatachanges to tables or views referred to by the statement. A reprepare operationincrements Com_stmt_reprepare, and also Com_stmt_prepare.

Com_stmt_reprepare表示当元数据(视图或表)被相关的语句修改后,语句被自动重新准备的次数。一次重新准备操作增加Com_stmt_reprepare和Com_stmt_prepare.

Com_explain_other indicates the number ofEXPLAIN FOR CONNECTION statements executed. See Section 8.8.4, “ObtainingExecution Plan Information for a Named Connection”. It was introduced in MySQL5.7.2.

Com_change_repl_filter indicates the numberof CHANGE REPLICATION FILTER statements executed. It was introduced in MySQL5.7.3.

时间: 2024-11-03 09:14:33

MySQLstatus variable Com_stmt_xxx的相关文章

windows tomcat 启动报错TOMCAT JAVA_HOME or JRE_HOME environment variable is not defined correctly

问题描述: TOMCAT JAVA_HOME or JRE_HOME environment variable is not defined correctly 报错信息如下:Neither the JAVA_HOME nor the JRE_HOME environment variable is defined At least one of these environment variable is needed to run this program;提示找不到java_home各jre

-Dmaven.multiModuleProjectDirectory system property is not set. Check $M2_HOME environment variable and mvn script match.chan

第一次使用Maven ,在eclipse中执行pom.xml文件的时候报错. -Dmaven.multiModuleProjectDirectory system propery is not set. Check $M2_HOME environment variable and mvn script match. 参考网上的解决方案: 设一个环境变量M2_HOME指向你的maven安装目录 M2_HOME=D:\Apps\apache-maven-3.3.1 然后在Window->Prefe

重构改善既有代码设计--重构手法05:Introduce Explaining Variable (引入解释性变量)

  发现:你有一个复杂的表达式. 解决:将该复杂的表达式(或其中的部分)的结果放进一个临时变量,并以此变量名称来解释表达式用途. //重构前 if((platform.toUpperCase().indexOf("MAC") > -1) && (browser.toUpperCase().indexOf("IE") > -1) && wasInitialized() && resize > 0) {

warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead.

使用VS2005以上版本(VS2005.VS2008.VS2010)编译在其他编译器下正常通过的C语言程序,你可能会遇到类似如下的警告提示: 引用内容warning C4996: 'strcpy': This function or variable may be unsafe. Consider using strcpy_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for det

Eclipse运行Maven命令时出现:-Dmaven.multiModuleProjectDirectory system property is not set. Check $M2_HOME environment variable and mvn script match.问题解决

错误: -Dmaven.multiModuleProjectDirectory system property is not set. Check $M2_HOME environment variable and mvn script match. 这个错误是由于Maven版本与当前IDE不兼容导致的,解决方法如下: 1.Maven降级. 2.升级IDE. 3.可以尝试这个方法:

Debain update apache error AH00111: Config variable ${APACHE_RUN_DIR} is not defined

今天升级kali 导致apache 无法启动,问题如下: [email protected]:~# apache2 -k start [Sat Jan 21 21:01:16.273933 2017] [core:warn] [pid 3248] AH00111: Config variable ${APACHE_RUN_DIR} is not defined apache2: Syntax error on line 80 of /etc/apache2/apache2.conf: Defau

2个问题,解决tomcat启动一闪而过和运行tomcat/bin目录下的startup.bat时报错(the CATALINA_HOME environment variable is not defined correctly)

1.除手动使用开始菜单自启动或者程序启动TOMCAT时TOMCAT一闪而过,这时候是发生了错误,这时候我们打开BIN目录下的“startup.bat”文件,编辑,在结尾添加pause命名,这样在CMD下执行startup.bat时就会出错停止,这时候我们就知道是什么错误了. 2.运行tomcat/bin目录下的startup.bat时报错:the CATALINA_HOME environment variable is not defined correctly 碰到这个问题时的第一反应是添加

error C4996: 'fopen': This function or variable may be unsafe. Consider using fopen_s instead. To disable deprecation

遇到这个问题,请打开项目的Properties(属性)------->Configuration Properties(配置属性)------>C/C++ ------>Preprocessor(预处理器)------->Preprocessor Difinitions (预处理器定义)   添加   _CRT_SECURE_NO_WARNINGS     之后点击OK.最后   应用------>确定. error C4996: 'fopen': This function

Linux Condition Variable条件变量避免锁冲突

条件变量Condition Variable的一般用法: 唤醒用法: 1 struct { 2 pthread_mutex_t mutex; 3 pthread_cond_t cond; 4 //whatever variables maintain the condition 5 ) var = { PTHREAD_MUTEX_INITIALIZER, PTHREAD_COND_INITIALIZER, ... };//声明结构体并初始化 6 7 pthread_mutex_lock(&var