which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mo

which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mo_第1张图片

修改里面的配置文件,
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 版本高于你使用的sql 版本

which is not functionally dependent on columns in GROUP BY clause; this is incompatible with sql_mode=only_full_group_by

最好使用5点几的版本

你可能感兴趣的:(java,mysql)