how to reset all mysql stats?

Sherif Buzz picture Sherif Buzz · Jan 24, 2011 · Viewed 11.7k times · Source

I can't seem to find a way to reset all the mysql stats (that show in the 'Stats' page in phpmyadmin)

I can reset the Server Traffic section but everything else doesn't get reset (InnoDB stats, handler stats, etc).

Answer

Jan picture Jan · Jan 24, 2011

This is a very old feature request, that is still not implemented: http://bugs.mysql.com/bug.php?id=22875

You can use the "FLUSH STATUS;" command as described in http://dev.mysql.com/doc/refman/5.0/en/flush.html but it will only reset session stats, not the global stats.