mysql5.7报err 1055错误 sql_mode=only_full_group_by

vim /etc/my.cnf 

末尾增加

sql_mode='STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION'

 

systemctl restart mysqld

posted @ 2018-11-21 11:27  ahuo  阅读(285)  评论(0编辑  收藏  举报