Skip to main content

MariaDB Strict Mode for single cPanel Account

Comments

3 comments

  • rackaid
    Howard The .my.cnf file would only apply to MySQL client connections made from the command line. However, you can set the sql_mode on a per-session basis. SET SESSION sql_mode = 'modes';
    Where 'modes' is the desired SQL mode. The application would need to run the above SQL query before other queries. If modifying the application is not possible, I do not know of another way to selectively disable the sql mode on a per-user basis. I find the MySQL docs do a better job of explaining modes than MariaDB's.
    0
  • cPanelLauren
    Thanks @rackaid! @HowardE let us know if you need any further assistance.
    0
  • HowardE
    I'll pass this on to the app developer... Hopefully this works for him.
    0

Please sign in to leave a comment.