数据库Mysql报错: [Err] 1055 - Expression #1 of ORDER BY clause is not in GROUP BY clause and
解决方法如下【Windows】数据库执行:selectversion(),@@sql_mode;SETsql_mode=(SELECTREPLACE(@@sql_mode,'ONLY_FULL_GROUP_BY',''));【Linux】修改mysql配置文件vim/etc/my.cnf,修改sql_mode的值,去掉ONLY_FULL_GROUP_BYsql_mode='STRICT_TRANS