|
@@ -51,6 +51,13 @@ func init() {
|
|
|
gl, _ := orm.GetDB("gl")
|
|
|
gl.SetConnMaxLifetime(10 * time.Minute)
|
|
|
|
|
|
+ _ = orm.RegisterDataBase("weekly_trial", "mysql", utils.MYSQL_URL_WEEKLY_TRIAL)
|
|
|
+ orm.SetMaxIdleConns("weekly_trial", 50)
|
|
|
+ orm.SetMaxOpenConns("weekly_trial", 100)
|
|
|
+
|
|
|
+ trial_datadb, _ := orm.GetDB("weekly_trial")
|
|
|
+ trial_datadb.SetConnMaxLifetime(10 * time.Minute)
|
|
|
+
|
|
|
orm.Debug = true
|
|
|
orm.DebugLog = orm.NewLog(utils.Binlog)
|
|
|
|