i want to count with using select, count, and group by. it work with MariaDB but not working wit MySQL.
i dont know if that version of mariadb or mysql but this code working in localhost but not working in my vps.
here my code
SELECT date, COUNT(id_master_post) FROM master_post GROUP BY DAY(date) ASC;
error i get.
SELECT date, COUNT(id_master_post) FROM master_post GROUP BY DAY(date) ASC LIMIT 0, 25 MySQL states: Documentation
.#1055 - Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated column 'piratefiles.master_post.date' which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by