1
This commit is contained in:
parent
8c365d3a57
commit
1f7cb554f3
@ -24,6 +24,23 @@ func (this *PlayerMgr) init() {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
conn := q5.NewMysql(
|
||||||
|
mt.Table.GameDb.GetById(0).GetHost(),
|
||||||
|
mt.Table.GameDb.GetById(0).GetPort(),
|
||||||
|
mt.Table.GameDb.GetById(0).GetUser(),
|
||||||
|
mt.Table.GameDb.GetById(0).GetPasswd(),
|
||||||
|
mt.Table.GameDb.GetById(0).GetDatabase(),
|
||||||
|
)
|
||||||
|
conn.Open()
|
||||||
|
rows, err := conn.Query("SELECT * FROM t_user")
|
||||||
|
if err == nil {
|
||||||
|
columns, err := rows.Columns()
|
||||||
|
if err == nil {
|
||||||
|
f5.GetSysLog().Info("mysql rows", columns)
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
f5.GetSysLog().Info("mysql error", err)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (this *PlayerMgr) unInit() {
|
func (this *PlayerMgr) unInit() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user