List all curent global modes in MySql
mysql -sse "SELECT @@GLOBAL.sql_mode;"
or direct in a sql in
SELECT @@GLOBAL.sql_mode;
example of output
STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION,ONLY_FULL_GROUP_BY
Open the /etc/mysql/mysql.conf.d with sudo or root and add the line below without ONLY_FULL_GROUP_BY
sql-mode=STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION
Restart MySql Server
/etc/init.d/mysqld restart