在威联通docker安装cloudreve 数据库我由默认的改为 mysql一直提示无法连接数据。求大神帮忙看看是哪里的问题
[Info] 2022-03-30 11:27:16 初始化数据库连接
[Panic] 2022-03-30 11:27:19 连接数据库不成功, dial tcp 192.168.0.157:3306: connect: no route to host
panic: 连接数据库不成功, dial tcp 192.168.0.157:3306: connect: no route to host
goroutine 1 [running]:
github.com/cloudreve/Cloudreve/v3/pkg/util.(*Logger).Panic(0xc0002ac0f0, 0x1218de4, 0x1c, 0xc00029fbd8, 0x1, 0x1)
/ProjectCloudreve/Cloudreve/pkg/util/logger.go:74 +0xe5
github.com/cloudreve/Cloudreve/v3/models.Init()
/ProjectCloudreve/Cloudreve/models/init.go:60 +0x1d5
github.com/cloudreve/Cloudreve/v3/bootstrap.Init.func3()
/ProjectCloudreve/Cloudreve/bootstrap/init.go:46 +0x25
github.com/cloudreve/Cloudreve/v3/bootstrap.Init(0x7ffccef85f0d, 0x1a)
/ProjectCloudreve/Cloudreve/bootstrap/init.go:103 +0x1fc
main.init.0()
/ProjectCloudreve/Cloudreve/main.go:23 +0x205
conf.ini配置文件如下:
[System]
Mode = master
Listen = :5212
[Database]
Type = mysql
Port = 3306
User = root
Password = 数据库密码
Host = 192.168.0.157
Name = cloudreve
TablePrefix = cd_
Charset = utf8
#DBFile = /cloudreve/db/cloudreve.db
SessionSecret =
HashIDSalt =