Sorry, for some reason I didn't see this reply before. My bad 
Questions is increased for a whole lot more then just queries. SET, use, show, desc statements and even syntax errors increase it as well.
Syntax errors shouldn't be too much of a problem on a production machine, but SET and things like desc can be executed quite a lot depending on the application (a lot of frameworks do nasty stuff for every execute query to get metadata and such).
Try looking at the amount of questions that get asked when you say 'use zabbix;' (on a machine that has no other connections using mysql obviously):
The better way would be to count the specific com_% statusses and the questions that get asked to the query cache.

Questions is increased for a whole lot more then just queries. SET, use, show, desc statements and even syntax errors increase it as well.
Syntax errors shouldn't be too much of a problem on a production machine, but SET and things like desc can be executed quite a lot depending on the application (a lot of frameworks do nasty stuff for every execute query to get metadata and such).
Try looking at the amount of questions that get asked when you say 'use zabbix;' (on a machine that has no other connections using mysql obviously):
Code:
mysql> show global status like 'questions'; +---------------+-------+ | Variable_name | Value | +---------------+-------+ | Questions | 53 | +---------------+-------+ 1 row in set (0.00 sec) mysql> use zabbix; Reading table information for completion of table and column names You can turn off this feature to get a quicker startup with -A Database changed mysql> show global status like 'questions'; +---------------+-------+ | Variable_name | Value | +---------------+-------+ | Questions | 146 | +---------------+-------+ 1 row in set (0.00 sec) mysql>
The better way would be to count the specific com_% statusses and the questions that get asked to the query cache.
Comment