diff --git a/sessionctx/variable/sysvar.go b/sessionctx/variable/sysvar.go index 0492be84acee9..9707cfc4e2db3 100644 --- a/sessionctx/variable/sysvar.go +++ b/sessionctx/variable/sysvar.go @@ -64,7 +64,7 @@ var defaultSysVars = []*SysVar{ {Scope: ScopeNone, Name: Hostname, Value: DefHostname}, {Scope: ScopeNone, Name: Port, Value: "4000", Type: TypeUnsigned, MinValue: 0, MaxValue: math.MaxUint16}, {Scope: ScopeNone, Name: LogBin, Value: Off, Type: TypeBool}, - {Scope: ScopeNone, Name: VersionComment, Value: "TiDB Server (Apache License 2.0) " + versioninfo.TiDBEdition + " Edition, MySQL 5.7 compatible"}, + {Scope: ScopeNone, Name: VersionComment, Value: "TiDB Server (Apache License 2.0) " + versioninfo.TiDBEdition + " Edition, MySQL 8.0 compatible"}, {Scope: ScopeNone, Name: Version, Value: mysql.ServerVersion}, {Scope: ScopeNone, Name: DataDir, Value: "/usr/local/mysql/data/"}, {Scope: ScopeNone, Name: Socket, Value: ""}, diff --git a/tidb-server/main.go b/tidb-server/main.go index c1f1109c35499..bae7b45b93271 100644 --- a/tidb-server/main.go +++ b/tidb-server/main.go @@ -709,7 +709,7 @@ func setGlobalVars() { if len(cfg.TiDBEdition) > 0 { versioninfo.TiDBEdition = cfg.TiDBEdition - variable.SetSysVar(variable.VersionComment, "TiDB Server (Apache License 2.0) "+versioninfo.TiDBEdition+" Edition, MySQL 5.7 compatible") + variable.SetSysVar(variable.VersionComment, "TiDB Server (Apache License 2.0) "+versioninfo.TiDBEdition+" Edition, MySQL 8.0 compatible") } if len(cfg.VersionComment) > 0 { variable.SetSysVar(variable.VersionComment, cfg.VersionComment)