Skip to main content

Global sql_mode keeps changing

Comments

3 comments

  • cPanelLauren
    Hello @polle To have this last past a restart to MySQL you should add this into /etc/my.cnf, for example: [mysqld] sql-mode="STRICT_TRANS_TABLES,NO_ENGINE_SUBSTITUTION"
    0
  • polle
    Can you please share exactly what I need to add to /etc/my.cnf to have both things permanent? Thank you.
    0
  • lordmwesh
    Open the file /etc/my.cnf add the line sql_mode=
    save the file Restart mysql service
    0

Please sign in to leave a comment.