Global sql_mode keeps changing

polle

Registered
Feb 12, 2017
2
0
1
Spain
cPanel Access Level
Root Administrator
I have to run this query every week, the server keeps changing by itself.

Code:
SET GLOBAL sql_mode=(SELECT REPLACE(@@sql_mode,'ONLY_FULL_GROUP_BY',''));

SET GLOBAL sql_mode=(SELECT REPLACE(@@sql_mode,'STRICT_TRANS_TABLES',''));
I see this when I go to some of that sites and are not working. So noticing this because my sites are down it is not good and of course having the sites down for who knows how many hours or days until I load specific pages, is worse.

What can the problem be?

Thank you.