运行报错
mark988 opened this issue · 0 comments
mark988 commented
[root@iZuf6franciex4vdls96ygZ App]# ./Server
parse mysql config once. filePath: /data/go-project/TopList/Config/mysql.toml
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x20 pc=0x759b9d]
goroutine 1 [running]:
sync.(*Mutex).Lock(...)
/data/go/src/sync/mutex.go:74
database/sql.(*DB).SetMaxOpenConns(0x0, 0x7d0)
/data/go/src/database/sql/sql.go:899 +0x2d
_/data/go-project/TopList/Common.init.0()
/data/go-project/TopList/Common/Db.go:41 +0xe0