MySQL中關於Qustions計算的改變

dbinsight發表於2013-11-13
MySQL Doc中對於Questions的解釋摘錄如下:

The number of statements executed by the server. As of MySQL          5.0.72, this includes only statements sent to the server by          clients and no longer includes statements executed within          stored programs, unlike the          variable. This          variable does not count COM_PING,          COM_STATISTICS,          COM_STMT_PREPARE,          COM_STMT_CLOSE, or          COM_STMT_RESET commands.
原文請參考:
http://dev.mysql.com/doc/refman/5.0/en/server-status-variables.html#statvar_Questions


也就是說在MySQL 5.0.72版本之前,在儲存過程裡中執行的語句都會被算到Questions這個指標裡,在5.0.72版本之後,只會計算一次。
所以這就導致在使用了儲存過程的MySQL DB實施版本升級之後會發現,Qustions量的突然變化。

關於此,MySQL還有一個Bug記錄,可以參考:

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/29154652/viewspace-776531/,如需轉載,請註明出處,否則將追究法律責任。

相關文章