1mysql > SET GLOBAL sql_mode=(SELECT REPLACE(@@sql_mode,'ONLY_FULL_GROUP_BY',''));
1sudo nano /etc/mysql/mysql.conf.d/mysqld.cnf
2[mysqld]
3# Add this line in last
4#-----------------------
5sql_mode=STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION
6#-----------------------
7
8#Save file and exit
9sudo systemctl restart mysql