Skip to content

[Bug] When adding a remote PostgreSQL database, the operation fails if there is no database with the same name as the username. #9151

@wan92hen

Description

@wan92hen

Contact Information

No response

1Panel Version

v2.0.1

Problem Description

添加远程 Postgresql 数据库时,数据库中不存在与用户名相同的数据库时失败。

Steps to Reproduce

  1. 准备一个 Postgresql 服务,假设连接用户名为 testuser
  2. 确保数据库中不存在名称为 testuser 的数据库
  3. 在 1Panel 中使用用户 testuser 添加这个远程 Postgresql
  4. 报错提示连接失败

The expected correct result

不存在与连接用户名相同的数据库时,也可以正常添加远程 Postgresql 服务器。

Related log output

Additional Information

No response

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions