feat: support connect to mysql with unix socket (#1571)

This commit is contained in:
5aaee9
2022-12-19 19:23:47 +08:00
committed by GitHub
parent 42a31f2fd1
commit 8dafb4f40a
3 changed files with 18 additions and 7 deletions

View File

@@ -17,6 +17,7 @@ type database struct {
DBFile string
Port int
Charset string
UnixSocket bool
}
// system 系统通用配置

View File

@@ -10,10 +10,11 @@ var RedisConfig = &redis{
// DatabaseConfig 数据库配置
var DatabaseConfig = &database{
Type: "UNSET",
Charset: "utf8",
DBFile: "cloudreve.db",
Port: 3306,
Type: "UNSET",
Charset: "utf8",
DBFile: "cloudreve.db",
Port: 3306,
UnixSocket: false,
}
// SystemConfig 系统公用配置