diff --git a/example/base/server/conf/config.toml b/example/base/server/conf/config.toml index 120e3fe..37742ad 100644 --- a/example/base/server/conf/config.toml +++ b/example/base/server/conf/config.toml @@ -1,5 +1,5 @@ [db] -addr = "root:123123@tcp(127.0.0.1:3306)/xxxx?charset=utf8&parseTime=True&loc=Local" +addr = "root:123123@tcp(127.0.0.1:3306)/xxxx?charset=utf8mb4&parseTime=True&loc=Local" max_open_conns = 16 max_idle_conns = 8 conn_max_life_time = 300 diff --git a/example/base/server/conf/config.yaml b/example/base/server/conf/config.yaml index 6c6e233..8d3ac8d 100644 --- a/example/base/server/conf/config.yaml +++ b/example/base/server/conf/config.yaml @@ -1,5 +1,5 @@ db: - addr: root:123123@tcp(127.0.0.1:3306)/xxxx?charset=utf8&parseTime=True&loc=Local + addr: root:123123@tcp(127.0.0.1:3306)/xxxx?charset=utf8mb4&parseTime=True&loc=Local max_open_conns: 16 max_idle_conns: 8 conn_max_life_time: 300 diff --git a/example/fshop/server/conf/config.toml b/example/fshop/server/conf/config.toml index 9731ebc..6d93346 100644 --- a/example/fshop/server/conf/config.toml +++ b/example/fshop/server/conf/config.toml @@ -1,5 +1,5 @@ [db] -addr = "root:root7944@tcp(127.0.0.1:3306)/fshop?charset=utf8&parseTime=True&loc=Local" +addr = "root:root7944@tcp(127.0.0.1:3306)/fshop?charset=utf8mb4&parseTime=True&loc=Local" max_open_conns = 16 max_idle_conns = 8 conn_max_life_time = 300 diff --git a/example/fshop/server/conf/config.yaml b/example/fshop/server/conf/config.yaml index 9f1539c..191d38f 100644 --- a/example/fshop/server/conf/config.yaml +++ b/example/fshop/server/conf/config.yaml @@ -1,5 +1,5 @@ db: - addr: root:root7944@tcp(127.0.0.1:3306)/fshop?charset=utf8&parseTime=True&loc=Local + addr: root:root7944@tcp(127.0.0.1:3306)/fshop?charset=utf8mb4&parseTime=True&loc=Local max_open_conns: 16 max_idle_conns: 8 conn_max_life_time: 300 diff --git a/example/http2/server/conf/config.toml b/example/http2/server/conf/config.toml index 1a32ced..f86bd51 100644 --- a/example/http2/server/conf/config.toml +++ b/example/http2/server/conf/config.toml @@ -1,5 +1,5 @@ [db] -addr = "root:123123@tcp(127.0.0.1:3306)/xxxx?charset=utf8&parseTime=True&loc=Local" +addr = "root:123123@tcp(127.0.0.1:3306)/xxxx?charset=utf8mb4&parseTime=True&loc=Local" max_open_conns = 16 max_idle_conns = 8 conn_max_life_time = 300 diff --git a/example/http2/server/conf/config.yaml b/example/http2/server/conf/config.yaml index adf64fd..08d0cb0 100644 --- a/example/http2/server/conf/config.yaml +++ b/example/http2/server/conf/config.yaml @@ -1,5 +1,5 @@ db: - addr: root:123123@tcp(127.0.0.1:3306)/xxxx?charset=utf8&parseTime=True&loc=Local + addr: root:123123@tcp(127.0.0.1:3306)/xxxx?charset=utf8mb4&parseTime=True&loc=Local max_open_conns: 16 max_idle_conns: 8 conn_max_life_time: 300 diff --git a/example/infra-example/server/conf/config.toml b/example/infra-example/server/conf/config.toml index 2cb29c8..bb48b06 100644 --- a/example/infra-example/server/conf/config.toml +++ b/example/infra-example/server/conf/config.toml @@ -1,5 +1,5 @@ [db] -addr = "root:root7944@tcp(127.0.0.1:3306)/freedom?charset=utf8&parseTime=True&loc=Local" +addr = "root:root7944@tcp(127.0.0.1:3306)/freedom?charset=utf8mb4&parseTime=True&loc=Local" max_open_conns = 16 max_idle_conns = 8 conn_max_life_time = 300 diff --git a/example/infra-example/server/conf/config.yaml b/example/infra-example/server/conf/config.yaml index 0064c4d..3c8f007 100644 --- a/example/infra-example/server/conf/config.yaml +++ b/example/infra-example/server/conf/config.yaml @@ -1,5 +1,5 @@ db: - addr: root:root7944@tcp(127.0.0.1:3306)/freedom?charset=utf8&parseTime=True&loc=Local + addr: root:root7944@tcp(127.0.0.1:3306)/freedom?charset=utf8mb4&parseTime=True&loc=Local max_open_conns: 16 max_idle_conns: 8 conn_max_life_time: 300 diff --git a/freedom/cmd/version.go b/freedom/cmd/version.go index 2a5473f..7d9d0d0 100644 --- a/freedom/cmd/version.go +++ b/freedom/cmd/version.go @@ -7,7 +7,7 @@ import ( ) const ( - versionNum = "v1.9.0" + versionNum = "v1.9.1" ) var ( diff --git a/freedom/template/project/server.go b/freedom/template/project/server.go index 01e582b..39a4d12 100644 --- a/freedom/template/project/server.go +++ b/freedom/template/project/server.go @@ -8,7 +8,7 @@ func init() { func tomlConf() string { return `[db] -addr = "root:123123@tcp(127.0.0.1:3306)/xxxx?charset=utf8&parseTime=True&loc=Local" +addr = "root:123123@tcp(127.0.0.1:3306)/xxxx?charset=utf8mb4&parseTime=True&loc=Local" max_open_conns = 16 max_idle_conns = 8 conn_max_life_time = 300 @@ -51,7 +51,7 @@ shutdown_second = 3 func yamlConf() string { return `db: - addr: root:123123@tcp(127.0.0.1:3306)/xxxx?charset=utf8&parseTime=True&loc=Local + addr: root:123123@tcp(127.0.0.1:3306)/xxxx?charset=utf8mb4&parseTime=True&loc=Local max_open_conns: 16 max_idle_conns: 8 conn_max_life_time: 300