美文网首页
mysql5.7报错this is incompatible w

mysql5.7报错this is incompatible w

作者: Mylovesunshine | 来源:发表于2019-06-27 10:17 被阅读0次

1、查看sql_mode

|

01

|

select @@global.sql_mode;

|

查询出来的值为:

ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION

2、去掉ONLY_FULL_GROUP_BY,重新设置值。

|

01

|

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';

|

3、上面是改变了全局sql_mode,对于新建的数据库有效。

http://www.jfinal.com/share/1451

相关文章

网友评论

      本文标题:mysql5.7报错this is incompatible w

      本文链接:https://www.haomeiwen.com/subject/farlcctx.html