升级 MySQL 5.0 到 5.7 后出错
Error after upgrade MySQL 5.0 to 5.7
我已将 MySQL 从版本 5.0.67 升级到 5.7.19。但是每次我 运行 MySQL 查询,我都会得到这个错误。
[Err] 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
我检查了 information_schema 数据库中的 PROFILING table,但它不包含任何数据。
我的 MySQL sql_mode 是 ANSI。
尝试更改 SQL 模式:
删除 'only_full_group_by' 选项。对于 MySQL 5.7,这被设置为默认值。
我已将 MySQL 从版本 5.0.67 升级到 5.7.19。但是每次我 运行 MySQL 查询,我都会得到这个错误。
[Err] 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
我检查了 information_schema 数据库中的 PROFILING table,但它不包含任何数据。
我的 MySQL sql_mode 是 ANSI。
尝试更改 SQL 模式:
删除 'only_full_group_by' 选项。对于 MySQL 5.7,这被设置为默认值。