时间:2021-07-01 10:21:17 帮助过:16人阅读
# 临时解决:重启完数据库会失效
set @@GLOBAL.sql_mode=‘STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION‘;
# 永久解决,在/etc/my.cnf中加入下列内容
加在 [mysqld] 下面,并重启数据库
sql_mode=STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION
mysql-5.7.22'this is incompatible with sql_mode=only_full_group_by'解决方法
标签:失效 lob mode sql_mod ati pat sql_mode only tables