I am getting an error in mysql
Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'returntr_prod.tbl_customer_pod_uploads.id' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by
for which I found that I need to change the sql mode using
SET GLOBAL sql_mode=(SELECT REPLACE(@@sql_mode,'ONLY_FULL_GROUP_BY',''));
I have executed the above in the mysql terminal and after executing this it is suggested to restart the mysql service. So I have come out of mysql terminal to ubuntu terminal and tried to execute
sudo restart mysql
I get an error message sudo: restart: command not found
. Can someone help me understand why am I getting this error.