Expression #1 of ORDER BY clause is not in GROUP BY clause and contains nonaggregated column 'information_schema.PROFILING.SEQ' which is not functionally dependent on columns in GROUP BY clause; this

最近使用新版本的mysql,执行语句的时候报错。网上找了一下,解决方法如下:

vim /etc/mysql/conf.d/mysql.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

service mysql restart

转载自:http://www.cnblogs.com/ThinkVenus/p/6821424.html

原文地址:https://www.cnblogs.com/passedbylove/p/7880411.html