How to Permanently SET Global SQL_Mode
-
I need to get around the endless problem of:
Expression #2 of SELECT list is not in GROUP BY clause
and contains nonaggregated column 'test.web_log.user_id' which is not functionally
dependent on columns in GROUP BY clause; this is incompatible
with sql_mode=only_full_group_byThe only way I can get around the error and still have the query I want is to permanently disable "only_full_group_by". I found an article which I believe (I could be wrong) only disables it temporarily for the active session, Like this:
mysql> SET GLOBAL sql_mode='STRICT_TRANS_TABLES,STRICT_ALL_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,
ERROR_FOR_DIVISION_BY_ZERO,TRADITIONAL,NO_ENGINE_SUBSTITUTION';OR//
mysql> SET GLOBAL sql_mode='';
So I need to disable it permanently.
Any Ideas how I do that in Laragon? I have spent too long with Linux
Many thanks!
-
@vincej : Menu > MySQL > my.ini is where you put the setting in.