If you are using Digital Ocean, the mysql cnf
files are emulated and don't actually really interact with the database. In this case, you set your sql-mode with (for a blank sql mode)...
doctl databases sql-mode set DB-UUID ""
If you don't know your DB UUID, check it out with:
GET DB UUID with: doctl databases list