Commands MySQL
Upgrading MySQL 5.6 to 5.7 – Group By Does not work anymore
September 17, 2019
0

Recently I have updated one of my server MySQL, then I have found that old MySQL Group By Query is not running anymore. It happens because of  notorious nonstandard MySQL extension to GROUP BY

Go To Mysql console:

Type the below command & see what are current SQL mode:

SELECT @@GLOBAL.sql_mode;

Type the below command to see what SQL mode is running from session, because even you set Global SQL mode, mysql run Session SQL mode until it is not restarted:

SELECT @@SESSION.sql_mode;

Now Run the below commands to set server MYSQL instance Mode:

SET GLOBAL sql_mode = 'NO_ENGINE_SUBSTITUTION';
SET SESSION sql_mode = 'NO_ENGINE_SUBSTITUTION';

ForReference: https://stackoverflow.com/questions/37089347/is-there-any-value-capability-for-mysql-5-6

About author

ZERIN

CEO & Founder (BdBooking.com - Online Hotel Booking System), CEO & Founder (TaskGum.com - Task Managment Software), CEO & Founder (InnKeyPro.com - Hotel ERP), Software Engineer & Solution Architect

WHM:: PHP Mail is Not Working-Showing Its Disable

When your mail does not work, one example could be...

Read more

How to Whitelist IP/ finding if IP is Blacklisted in Linux CentOS

1. How to check if an IP is Blacklisted: If you wa...

Read more

How To Check for Virus / Malware Script in Server / WordPress Site

Check Recently Modified Files in Server Login to s...

Read more

There are 0 comments

Leave a Reply

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