I am migrating my one live project from shared hosting to VPS. After successfully importing the database and all APIs while testing I was getting below error.
#1055 - Expression #3 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'table1.user_address.flatNumber' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by
I had read a lot about it this is because of change in PHP admin versions and trying to fix it with some below solution.
SET GLOBAL sql_mode=(SELECT REPLACE(@@sql_mode,'ONLY_FULL_GROUP_BY',''));
Once I am running any of such a solution I am getting another error.
#1227 - Access denied; you need (at least one of) the SUPER privilege(s) for this operation
Now there are a lot of APIs in my live project It's a bit difficult to modify each and every query of API.
Is there any easy and better solution for it. I am new to MySQL