mysql 5.7*, 报错:this is incompatible with DISTINCT
刚布署了的mysql查询报错:
this is incompatible with DISTINCT
解决方法:
在mysql 配置文件my.ini 或者my.cnf 里添加:
[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