用的 1panel面板, 建了一个PHP容器搭建多个站点, cloudreve搭建用MYSQL数据库, 运行 “./cloudreve” 连接上不上mysql数据, 配置文件没有问题 用SQLite数据库就没问题。 数据库, 多个, 不上
错误信息是这样的 [ol][Info] 2024-07-28 01:53:29 Initializing database connection... [Panic] 2024-07-28 01:53:29 Failed to connect to database: dial tcp: lookup 1Panel-mysql-mPGB on 1.1.1.1:53: no such host panic: Failed to connect to database: dial tcp: lookup 1Panel-mysql-mPGB on 1.1.1.1:53: no such host goroutine 1 [running]: github.com/cloudreve/Cloudreve/v3/pkg/util.(*Logger).Panic(0xc0000ae8e0, {0x1564120?, 0xc000157b98?}, {0xc000157b98?, 0x5?, 0x440b00?}) /Users/aaronliu/Projects/Cloudreve/pkg/util/logger.go:74 +0x94 github.com/cloudreve/Cloudreve/v3/models.Init() /Users/aaronliu/Projects/Cloudreve/models/init.go:76 +0x70a github.com/cloudreve/Cloudreve/v3/bootstrap.Init.func5() /Users/aaronliu/Projects/Cloudreve/bootstrap/init.go:61 +0x17 github.com/cloudreve/Cloudreve/v3/bootstrap.Init({0xc00003a2d0, 0x4a}, {0x1a6b960, 0xc0000102b8}) /Users/aaronliu/Projects/Cloudreve/bootstrap/init.go:128 +0x29b main.init.0() /Users/aaronliu/Projects/Cloudreve/main.go:42 +0x1ca[/ol]复制代码