[Err] 1055 - Expression #1 of OR

2019-06-28  本文已影响0人  后知后觉_5d11

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

[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,执行上述语句

上一篇 下一篇

猜你喜欢

热点阅读