diff --git a/cmd/static/cmd.go b/cmd/static/cmd.go index a2bf7472..958dc106 100644 --- a/cmd/static/cmd.go +++ b/cmd/static/cmd.go @@ -131,7 +131,7 @@ Examples: Examples: # Generate DB model code - cwgo model --db_type mysql --dsn "gorm:gorm@tcp(localhost:9910)/gorm?charset=utf8&parseTime=True&loc=Local" + cwgo model --db_type mysql --dsn "gorm:gorm@tcp(localhost:9910)/gorm?charset=utf8mb4&parseTime=True&loc=Local" ` InitName = "init" diff --git a/example/hex/conf/dev/conf.yaml b/example/hex/conf/dev/conf.yaml index 811b9121..7879cb20 100644 --- a/example/hex/conf/dev/conf.yaml +++ b/example/hex/conf/dev/conf.yaml @@ -14,7 +14,7 @@ registry: password: "" mysql: - dsn: "gorm:gorm@tcp(127.0.0.1:3306)/gorm?charset=utf8&parseTime=True&loc=Local" + dsn: "gorm:gorm@tcp(127.0.0.1:3306)/gorm?charset=utf8mb4&parseTime=True&loc=Local" redis: address: "127.0.0.1:6379" username: "" diff --git a/example/hex/conf/online/conf.yaml b/example/hex/conf/online/conf.yaml index 811b9121..7879cb20 100644 --- a/example/hex/conf/online/conf.yaml +++ b/example/hex/conf/online/conf.yaml @@ -14,7 +14,7 @@ registry: password: "" mysql: - dsn: "gorm:gorm@tcp(127.0.0.1:3306)/gorm?charset=utf8&parseTime=True&loc=Local" + dsn: "gorm:gorm@tcp(127.0.0.1:3306)/gorm?charset=utf8mb4&parseTime=True&loc=Local" redis: address: "127.0.0.1:6379" username: "" diff --git a/example/hex/conf/test/conf.yaml b/example/hex/conf/test/conf.yaml index 811b9121..7879cb20 100644 --- a/example/hex/conf/test/conf.yaml +++ b/example/hex/conf/test/conf.yaml @@ -14,7 +14,7 @@ registry: password: "" mysql: - dsn: "gorm:gorm@tcp(127.0.0.1:3306)/gorm?charset=utf8&parseTime=True&loc=Local" + dsn: "gorm:gorm@tcp(127.0.0.1:3306)/gorm?charset=utf8mb4&parseTime=True&loc=Local" redis: address: "127.0.0.1:6379" username: "" diff --git a/tpl/hertz/server/standard/layout.yaml b/tpl/hertz/server/standard/layout.yaml index ff4135f2..367d6f78 100644 --- a/tpl/hertz/server/standard/layout.yaml +++ b/tpl/hertz/server/standard/layout.yaml @@ -264,7 +264,7 @@ layouts: log_max_backups: 50 mysql: - dsn: "gorm:gorm@tcp(127.0.0.1:3306)/gorm?charset=utf8&parseTime=True&loc=Local" + dsn: "gorm:gorm@tcp(127.0.0.1:3306)/gorm?charset=utf8mb4&parseTime=True&loc=Local" redis: address: "127.0.0.1:6379" @@ -289,7 +289,7 @@ layouts: log_max_backups: 50 mysql: - dsn: "gorm:gorm@tcp(127.0.0.1:3306)/gorm?charset=utf8&parseTime=True&loc=Local" + dsn: "gorm:gorm@tcp(127.0.0.1:3306)/gorm?charset=utf8mb4&parseTime=True&loc=Local" redis: address: "127.0.0.1:6379" @@ -314,7 +314,7 @@ layouts: log_max_backups: 50 mysql: - dsn: "gorm:gorm@tcp(127.0.0.1:3306)/gorm?charset=utf8&parseTime=True&loc=Local" + dsn: "gorm:gorm@tcp(127.0.0.1:3306)/gorm?charset=utf8mb4&parseTime=True&loc=Local" redis: address: "127.0.0.1:6379" diff --git a/tpl/kitex/server/standard/conf_dev_tpl.yaml b/tpl/kitex/server/standard/conf_dev_tpl.yaml index 76933d6e..3b6ea695 100644 --- a/tpl/kitex/server/standard/conf_dev_tpl.yaml +++ b/tpl/kitex/server/standard/conf_dev_tpl.yaml @@ -18,7 +18,7 @@ body: |- password: "" mysql: - dsn: "gorm:gorm@tcp(127.0.0.1:3306)/gorm?charset=utf8&parseTime=True&loc=Local" + dsn: "gorm:gorm@tcp(127.0.0.1:3306)/gorm?charset=utf8mb4&parseTime=True&loc=Local" redis: address: "127.0.0.1:6379" diff --git a/tpl/kitex/server/standard/conf_online_tpl.yaml b/tpl/kitex/server/standard/conf_online_tpl.yaml index b3a604e1..ffece9cf 100644 --- a/tpl/kitex/server/standard/conf_online_tpl.yaml +++ b/tpl/kitex/server/standard/conf_online_tpl.yaml @@ -18,7 +18,7 @@ body: |- password: "" mysql: - dsn: "gorm:gorm@tcp(127.0.0.1:3306)/gorm?charset=utf8&parseTime=True&loc=Local" + dsn: "gorm:gorm@tcp(127.0.0.1:3306)/gorm?charset=utf8mb4&parseTime=True&loc=Local" redis: address: "127.0.0.1:6379" diff --git a/tpl/kitex/server/standard/conf_test_tpl.yaml b/tpl/kitex/server/standard/conf_test_tpl.yaml index 7a4a287c..773c8977 100644 --- a/tpl/kitex/server/standard/conf_test_tpl.yaml +++ b/tpl/kitex/server/standard/conf_test_tpl.yaml @@ -18,7 +18,7 @@ body: |- password: "" mysql: - dsn: "gorm:gorm@tcp(127.0.0.1:3306)/gorm?charset=utf8&parseTime=True&loc=Local" + dsn: "gorm:gorm@tcp(127.0.0.1:3306)/gorm?charset=utf8mb4&parseTime=True&loc=Local" redis: address: "127.0.0.1:6379"