|
|
|
|
30
|
dbName = "local"
|
30
|
dbName = "local"
|
31
|
user = beego.AppConfig.DefaultString(dbName+"::user", "sa")
|
31
|
user = beego.AppConfig.DefaultString(dbName+"::user", "sa")
|
32
|
password = beego.AppConfig.DefaultString(dbName+"::password", "hy123456")
|
32
|
password = beego.AppConfig.DefaultString(dbName+"::password", "hy123456")
|
33
|
- host = beego.AppConfig.DefaultString(dbName+"::host", "192.168.10.10")
|
|
|
|
|
33
|
+ host = beego.AppConfig.DefaultString(dbName+"::host", "localhost")
|
34
|
port = beego.AppConfig.DefaultInt(dbName+"::port", 1633)
|
34
|
port = beego.AppConfig.DefaultInt(dbName+"::port", 1633)
|
35
|
dbname = beego.AppConfig.DefaultString(dbName+"::dbname", "hyDB")
|
35
|
dbname = beego.AppConfig.DefaultString(dbName+"::dbname", "hyDB")
|
36
|
)
|
36
|
)
|