I have a weird problem whereby every few weeks, changes I've made to MySQL config are being reset to their defaults.
I'm on Centos 7.9 and CPanel 98.0.9.
I'm making my changes via PHPMyAdmin while logged in as root. Example:
sql_mode=NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION
Eventually this gets reverted to include something my CMS doesn't like, namely the STRICT_TRANS_TABLES
property.
I spoke to support, who suggested I write the change to /etc/my.cnf
instead, which I've now done. But I don't know if there's other places I should write this override so it doesn't get lost again.
I'm no server guy; does anyone know what might be doing this? Where would I go sniffing on the server to hopefully find out?
Thanks very much in advance.