mysql异常 functionally dependent on columns in GROUP BY clause; this is incompatible with

最终解决办法:修改MySQL的配置文件,修改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

在Mysql 8.0中

#已被废弃,上面的配置要去除
NO_AUTO_CREATE_USER

重启mysql

你可能感兴趣的:(mysql异常 functionally dependent on columns in GROUP BY clause; this is incompatible with)