mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-09-01 12:25:43 +08:00
add log
This commit is contained in:
parent
c0190e21c6
commit
88af048e90
@ -23,6 +23,7 @@ func (w Writer) Printf(format string, args ...interface{}) {
|
||||
}
|
||||
|
||||
func initMysqlDB() {
|
||||
fmt.Println("init mysqlDB start")
|
||||
//When there is no open IM database, connect to the mysql built-in database to create openIM database
|
||||
dsn := fmt.Sprintf("%s:%s@tcp(%s)/%s?charset=utf8mb4&parseTime=true&loc=Local",
|
||||
config.Config.Mysql.DBUserName, config.Config.Mysql.DBPassword, config.Config.Mysql.DBAddress[0], "mysql")
|
||||
|
Loading…
x
Reference in New Issue
Block a user