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

安装好数据库进行操作时,报

[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

解决:windows上运行cmd,然后输入

mysql -uxxx -pxxxxx进入mysql,执行下mysql语句:

set @@global.sql_mode='NO_AUTO_VALUE_ON_ZERO,STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION';


linux上进入MySQL,执行上述语句

你可能感兴趣的:([Err] 1055 - Expression #1 of ORDER BY clause is not in GROUP BY clause and contains nonaggregated c)