Skip to main content

Changes made to my.cnf not working

Comments

4 comments

  • 24x7server
    Hi, It may be the case where MySQL configuration that is loaded is a different from the default one. # mysql mysql> SHOW VARIABLES; Check what is the actual configuration file loaded by the MySQL on your server..
    0
  • rpvw
    I don't know if this is still the case. or even if it is relevant to your platform. Some time ago I had the same experience of changes to the /etc/my.cnf file not taking effect, As well as an /etc/my.cnf, I found a /usr/my.cnf file that is read after the /etc/my.cnf and editing that file solved my problem. Perhaps it would be worth the time to check if you have any other cnf files ?
    0
  • cPanelMichael
    Hello, It's possible this relates to the issue described in the previous post. Review the following thread to see if the referenced solution helps: Turn off Mysql Strict Mode Thank you.
    0
  • yu0307
    Thank you all for helping out, Finally the support team found the issue. It was deprecated option string mixed with current version. I in the cnf file, there were settings with "-" rather than "_" which caused mysql skip reading the rest of the settings when encountered. for example, "slow-query-log" suppose to be "slow_query_log" in mysql 5.6. But I guess the important lesson from this instance was rather "Mysql will ignore the rest of the settings if it detects a deprecated setting" which cause the settings afterwards not registering. Hope this helps for people coming up later
    0

Please sign in to leave a comment.