csx 3 years ago
parent
commit
686ea0e35d
2 changed files with 2 additions and 2 deletions
  1. 1 1
      conf/app.conf
  2. 1 1
      service/db.go

+ 1 - 1
conf/app.conf View File

86
 redisdb = 2
86
 redisdb = 2
87
 
87
 
88
 
88
 
89
-blmysqlhost = 127.0.0.1
89
+blmysqlhost = localhost
90
 blmysqlport = 3306
90
 blmysqlport = 3306
91
 blmysqluser = lindialy
91
 blmysqluser = lindialy
92
 blmysqlpass = 123456
92
 blmysqlpass = 123456

+ 1 - 1
service/db.go View File

176
 
176
 
177
 	blDb, err = gorm.Open("mysql", bldsn)
177
 	blDb, err = gorm.Open("mysql", bldsn)
178
 	if err != nil {
178
 	if err != nil {
179
-		//beego.Error(err)
179
+		fmt.Println(err)
180
 	}
180
 	}
181
 	blDb.DB().SetMaxIdleConns(10)
181
 	blDb.DB().SetMaxIdleConns(10)
182
 	blDb.DB().SetMaxOpenConns(100)
182
 	blDb.DB().SetMaxOpenConns(100)