[Err] 1055 - Expression #1 of ORDER BY clause is not in GROUP BY clause and contains nonaggregated.

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/weixin_38508261/article/details/79756298

因为要按照各Jenkins+sonar的自动化部署加监测的环境,之前使用的mysql5.1不支持sonar,所以重新装了mysql5.7版本,但是安装之后项目报错

[Err] 1055 - Expression #1 of ORDER BY clause is not in GROUP BY clause and contains nonaggregated.

上网查了下找到解决办法,分享一下:https://blog.csdn.net/u014520745/article/details/76056170

在my.ini配置文件中增加设置了

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解决问题。

猜你喜欢

转载自blog.csdn.net/weixin_38508261/article/details/79756298