Well, it’s Sunday night so I will put this down to being the weekend. The background to being caught out is a request I made to my local Users Group mailing list for some information on people’s environments because I wanted to some empirical data analysis without having any more knowledge of the systems.
In summary (without the surrounding fan-fare, I was seeking):
SELECT VERSION(); SHOW STATUS; SHOW VARIABLES; // Optional
I was however perplexed why my first data point analysis (Read/Write ratio) using the Status values Com_insert, Com_update, Com_delete and Com_select was not always giving me expected results. In particular, a number of server results showed 0 for values while I knew the results came from working MySQL environments.
So, sanity check with good friend Morgan and I get the response to answer the dilemma SHOW STATUS defaults to session …
[Read more]