I have removed ONLY_FULL_GROUP_BY from sql_mode. The following query returns no modes enabled.
SELECT @@GLOBAL.sql_mode;
But still when using group by, I am receiving non-aggregated columns
(this is incompatible with sql_mode=only_full_group_by) error.
Option 1: Remove Globally ONLY_FULL_GROUP_BY using query
mysql> SET GLOBAL sql_mode=(SELECT REPLACE(@@sql_mode,'ONLY_FULL_GROUP_BY',''));
mysql>SET @@sql_mode=REPLACE(@@sql_mode, 'ONLY_FULL_GROUP_BY', '');
Refer: http://johnemb.blogspot.com.ng/2014/09/adding-or-removing-individual-sql-modes.html
Option 2: Set sql_mode to nothing...
mysql> SET GLOBAL sql_mode = '';
Option 3: Remove Globally ONLY_FULL_GROUP_BY from phpmyadmin

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With