second
This commit is contained in:
parent
41d0fc585c
commit
03894a4a4d
|
@ -11,7 +11,7 @@ var Db *gorm.DB
|
|||
|
||||
func init() {
|
||||
var err error
|
||||
Db, err = gorm.Open("mysql", "root:root@tcp(localhost:3306)/news")
|
||||
Db, err = gorm.Open("mysql", "root:mysql9512@tcp(116.63.159.166:3306)/news")
|
||||
if err != nil {
|
||||
log.Panicln("err:", err.Error())
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue