You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you update mysql to 5.7 you will face this error:
Database_Exception [ 1055 ]: Expression #1 of ORDER BY clause is not in GROUP BY clause and contains nonaggregated column XXX which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by
This is because MySQL changed in 5.7 and ONLY_FULL_GROUP_BY is not enabled by default. http://dev.mysql.com/doc/refman/5.7/en/sql-mode.html#sqlmode_only_full_group_by
If you use Kohana a quick fix will be to edit your /config/database.php
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
If you update mysql to 5.7 you will face this error:
Database_Exception [ 1055 ]: Expression #1 of ORDER BY clause is not in GROUP BY clause and contains nonaggregated column XXX which is not functionally dependent on columns in GROUP BY clause; this is incompatible with
sql_mode=only_full_group_by
This is because MySQL changed in 5.7 and ONLY_FULL_GROUP_BY is not enabled by default.
http://dev.mysql.com/doc/refman/5.7/en/sql-mode.html#sqlmode_only_full_group_by
If you use Kohana a quick fix will be to edit your /config/database.php
I have added
'variables' => array('sql_mode'=>'')
If you are not using kohana a global way will be to edit /etc/mysql/my.cnf
Original: https://garridodiaz.com/mysql-5-7-sql_mode/
Beta Was this translation helpful? Give feedback.
All reactions