1055

1055 - 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 is incompatible with sql_mode=only_full_group_by

安装另一个版本的Navicat 工具时,执行函数报如下错误:

1055 - 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 is incompatible with sql_mode=only_full_group_by

解决办法:
1、找到mysql的安装路径,找到ini文件
C:Program FilesMySQLMySQL Server 5.7mydefult.ini
文件最后增加:
sql_mode=STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION

2、重启mysql
命令行:net stop mysql
net start mysql

原文地址:https://www.cnblogs.com/druck/p/11219179.html