Cara mengatasi MySQL Server said : Expression #1 of ORDER BY caluse is not in GROUP BY clause and contains nonagregated column, which is not functionaly dependent on columns in GROUP BY clause, this is incompatible with sql_mode=onlyfull_group_by

WhatsApp Image 2018-08-16 at 12.21.50

Cara mengatasi MySQL Server said : Expression #1 of ORDER BY caluse is not in GROUP BY clause and contains nonagregated column, which is not functionaly dependent on columns in GROUP BY clause, this is incompatible with sql_mode=onlyfull_group_by

solusi :

edit /etc/mysql/my.cnf

tambahi [mysqld]
sql_mode = “STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION”

Leave a Reply

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