What does FLUSH STATUS do? We all know that it will simply reset all status variables (except for ‘uptime’) to same values as immediately after a server restart. Just google it and you will find that behaviour statet on hundreds of sites on the Internet.
But NO – it is not true! Not
anymore. MySQL documentation:
http://dev.mysql.com/doc/refman/5.5/en/flush.html
“This option adds the current thread’s session status variable values to the global values and resets the session values to zero. It also resets the counters for key caches (default and named) to zero and sets Max_used_connections to the current number of open connections.”
This bug report …
[Read more]