|
@@ -94,6 +94,12 @@ func ConnectDB() {
|
94
|
94
|
blPass := beego.AppConfig.String("blmysqlpass")
|
95
|
95
|
blName := beego.AppConfig.String("blmysqlname")
|
96
|
96
|
|
|
97
|
+ fmt.Println(blHost)
|
|
98
|
+ fmt.Println(blPort)
|
|
99
|
+ fmt.Println(blUser)
|
|
100
|
+ fmt.Println(blPass)
|
|
101
|
+ fmt.Println(blName)
|
|
102
|
+
|
97
|
103
|
rdsn := fmt.Sprintf("%s:%s@tcp(%s:%s)/%s?charset=utf8mb4&parseTime=true", readUser, readPass, readHost, readPort, readName)
|
98
|
104
|
wdsn := fmt.Sprintf("%s:%s@tcp(%s:%s)/%s?charset=utf8mb4&parseTime=true", writeUser, writePass, writeHost, writePort, writeName)
|
99
|
105
|
|