Knowledgebase

How do I disable ONLY_FULL_GROUP_BY in MySQL?| VCCLHosting

Portal Home > Knowledgebase > cPanel - Control Panel > How do I disable ONLY_FULL_GROUP_BY in MySQL?| VCCLHosting

You can enable ONLY_FULL_GROUP_BY in MySQL as shown in the following query −

mysql> SET sql_mode = 'ONLY_FULL_GROUP_BY';
Query OK, 0 rows affected (0.01 sec)

As shown above, we can enable ONLY_FULL_GROUP_BY with the help of SET command.

To disable ONLY_FULL_GROUP_BY with the help of the following query −

mysql> SET GLOBAL sql_mode=(SELECT REPLACE(@@sql_mode,'ONLY_FULL_GROUP_BY',''));
Query OK, 0 rows affected (0.04 sec)

We have disabled ONLY_FULL_GROUP_BY successfully.

If you need any further assistance please raise ticket at vcclhosting.com client area.

mysql, ONLY_FULL_GROUP_BY, WHM, Sendy, sendy mysql error

Was this answer helpful?
4441 Users Found This Useful 40121 Votes

Also Read