November 28, 2014

About Stephane Combaudon

Stéphane joined Percona in July 2012, after working as a MySQL DBA for leading French companies such as Dailymotion and France Telecom.

In real life, he lives in Paris with his wife and their twin daughters. When not in front of a computer or not spending time with his family, he likes playing chess and hiking.


  1. gggeek says:

    Isn’t this eerily similar to noatime and its poerf improvements on disk access? :-D

  2. Juan P. says:


    Thank you for the info. I’m using mysql 5.1 and I think that innodb_stats_on_metadata is set to ON by default. Do you know how to include this variable en my.cnf (file section, etc)?

    Thank you!

  3. Stephane Combaudon says:

    @gggeek: you’re right. Except that I don’t really see any use case for innodb_stats_on_metadata = ON, while having noatime is sometimes useful.

    @Juan P: you should include the setting somewhere in the mysqld section:
    innodb_stats_on_metadata = OFF

    That will take effect after a MySQL restart. As the setting is dynamic, you can also change it at runtime with SET GLOBAL as shown in the post.

  4. @Stephane – there is a use case. Information_schema contains meta data with number of rows in the table, and average row length etc. These values (although coarsely generated) will potentially be more out of date without innodb_stats_on_metadata = ON.

  5. Stephane Combaudon says:

    @Morgan: True. I don’t think it will ever be a problem as the values are always far from being accurate, but it’s worth mentioning.

  6. Agree with you – especially in 5.6 where the persistent stats are more accurate.

  7. Vinodkumar Saravana says:


    after adding the below line in my.ini file, mysql not starting, please advise me…

    innodb_stats_on_metadata = OFF

  8. Stephane Combaudon says:

    @Vinodkumar: which version of MySQL are you using? and which message do you have in the error log?

  9. Vinodkumar Saravana says:

    I am using Mysql 5.0.45 and i didn’t see any error in the log file…:(

    Do you want me to share my.ini file with you?

  10. Vinodkumar Saravana says:

    sorry this is applicable to MySQL 5.1 or 5.5, i didn’t read it….

Speak Your Mind