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

MySQL设置时区时报错:sql

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

致使时区没法修改为功;spa

解决方法:code

  • -- 查看sql_mode设置 io

  • show variables like "sql_mode"; 方法

  • -- 设置sql_mode co

  • set sql_mode=''; ab

  • set sql_mode='NO_ENGINE_SUBSTITUTION,STRICT_TRANS_TABLES'; 时区

再从新执行修改时区sql便可成功修改; 

相关文章
相关标签/搜索