本人微信公众号"aeolian"~

Mysql5.7出现this is incompatible with sql_mode=only_full_group_by

vi /etc/my.cnf   #编辑mysql配置文件
在 [mysqld]和[mysql]下添加
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 *