PhpStorm说PostgreSQL数据库不存在?

Gly*_*yph 5 postgresql phpstorm

我可以protomolecule通过PHP脚本使用这些完全相同的凭据连接到数据库.尝试在PhpStorm中进行设置失败,如图所示.

如果我将protomolecule数据库更改为默认postgres数据库,它在PhpStorm中连接就好了.我无法弄清楚为什么用户只能连接到postgres其他东西.

我已经尝试设置新用户和新数据库无济于事.

PhpStorm数据源和驱动程序窗口

编辑:根据要求添加下面的工作PHP脚本设置.

array(
    'database' => 'protomolecule',
    'driver' => 'Pgsql',
    'hostname' => 'localhost',
    'username' => 'postgres',
    'password' => 'xxxxxxxxxxxxx',
    'port' => '5432'
)
Run Code Online (Sandbox Code Playgroud)

Seb*_*Seb 1

图片中给出了一个 url。它指出这“覆盖上面的设置”。url 中没有用户名/密码。您可以尝试将用户名(也可能是密码)添加到 url - 或清空 url 字段。