We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bf1cd15 commit b474fe7Copy full SHA for b474fe7
server/model/system/request/sys_init.go
@@ -34,9 +34,9 @@ func (i *InitDB) PgsqlEmptyDsn() string {
34
i.Host = "127.0.0.1"
35
}
36
if i.Port == "" {
37
- i.Port = "3306"
+ i.Port = "5432"
38
39
- return "host=" + i.Host + " user=" + i.UserName + " password=" + i.Password + " port=" + i.Port + " " + "sslmode=disable TimeZone=Asia/Shanghai"
+ return "host=" + i.Host + " user=" + i.UserName + " password=" + i.Password + " port=" + i.Port + " dbname=" + "postgres" + " " + "sslmode=disable TimeZone=Asia/Shanghai"
40
41
42
// ToMysqlConfig 转换 config.Mysql
0 commit comments