Disable ONLY_FULL_GROUP_BY in MySQL version 5.7

To disable ONLY_FULL_GROUP_BY mode you can use the following command

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

Or can update in phpmyadmin by clicking on “Variables” tab and look for sql_mode. Click on Edit to remove ONLY_FULL_GROUP_BY

Leave a Reply

Your email address will not be published. Required fields are marked *