How to Permanently SET Global SQL_Mode

  • | 1129 points

    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_by

    The 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='';

    So I need to disable it permanently.

    Any Ideas how I do that in Laragon? I have spent too long with Linux

    Many thanks!

  • administrators
    | 131219 points

    @vincej : Menu > MySQL > my.ini is where you put the setting in.

Log in to reply

Looks like your connection to Laragon was lost, please wait while we try to reconnect.