diff --git a/parser/mysql/const.go b/parser/mysql/const.go index efa4bce46e5f6..0c1876b6a2283 100644 --- a/parser/mysql/const.go +++ b/parser/mysql/const.go @@ -399,7 +399,7 @@ var AllColumnPrivs = []PrivilegeType{SelectPriv, InsertPriv, UpdatePriv} const AllPrivilegeLiteral = "ALL PRIVILEGES" // DefaultSQLMode for GLOBAL_VARIABLES -const DefaultSQLMode = "STRICT_TRANS_TABLES,NO_ENGINE_SUBSTITUTION" +const DefaultSQLMode = "ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION" // DefaultLengthOfMysqlTypes is the map for default physical length of MySQL data types. // See http://dev.mysql.com/doc/refman/5.7/en/storage-requirements.html