Skip to main content

Server restart loses custom SQL Mode and ignores my .my.cnf file

Comments

8 comments

  • cPanelLauren
    Hi @monkey64 Is there a specific reason why you're making modifications to /root/.my.cnf? This isn't the proper location to make MySQL configuration changes. If you make your modifications to /etc/my.cnf they should not be overwritten. Thanks!
    0
  • monkey64
    In my haste, I incorrectly added sql_mode=NO_ENGINE_SUBSTITUTION
    to the [mysqld_safe] section of /etc/my.cnf! Because it didn't work when the server rebooted, I searched for other .cnf files. Correctly adding it to the [mysqld] section of /etc/my.cnf works perfectly. Thanks
    0
  • cPanelLauren
    Hi @monkey64 I'm really glad to hear that! Thanks for updating us as well :)
    0
  • medicakare
    i have the same problem but i can't find my.cnf file
    0
  • cPanelLauren
    Hello @medicakare The location of the my.cnf file is clearly stated in this thread numerous times. You should have no problem finding it at /etc/my.cnf
    0
  • medicakare
    56601 my.cnf file not here
    0
  • rpvw
    @cPanelLauren told you to look for the my.cnf file in the /etc (under root) folder - your screenshot would indicate you are looking in the /home/medicaka/etc folder :( You can not see the root /etc folder from a cPanel file manager - you will need to log in as root using a SSH terminal (there is one built into WHM under the Server Configuration option) or some other file explorer protocol like fish
    0
  • medicakare
    thanks i found it by winscp program
    0

Please sign in to leave a comment.