prepare stmt1 from ' show full processlist '; execute stmt1; Id User Host db Command Time State Info number root localhost test Query time NULL show full processlist deallocate prepare stmt1; FLUSH STATUS; SHOW GLOBAL STATUS LIKE 'com_select'; Variable_name Value Com_select 101 SHOW GLOBAL STATUS LIKE 'com_select'; Variable_name Value Com_select 101