Postgresql 渡槽无法执行数据库迁移文件

Postgresql 渡槽无法执行数据库迁移文件,postgresql,aqueduct,Postgresql,Aqueduct,我在学飞镖和导水管。我正在学习导水管教程。到目前为止,一切正常。但是当连接到数据库时,我得到一个错误 我正在使用: Windows 10 PostreSQL 13 Dart 2.10.0 Aqueduct 4.0.0-b1 我得到以下错误: *** There was an error connecting to the database 'heroes_user:password@localhost:5432/heroes'. Reason: unable to connect to dat

我在学飞镖和导水管。我正在学习导水管教程。到目前为止,一切正常。但是当连接到数据库时,我得到一个错误

我正在使用:

Windows 10
PostreSQL 13
Dart 2.10.0
Aqueduct 4.0.0-b1
我得到以下错误:

*** There was an error connecting to the database 'heroes_user:password@localhost:5432/heroes'. Reason: unable to connect to database.
出现错误的命令提示

我可以使用
psql
DBeaver
连接到数据库,因此用户名(英雄用户)、密码(密码)和数据库(英雄)是正确的

我从3号导水管开始,但在我查找错误后,我注意到其他人也有类似的问题,建议升级到4号导水管。所以我执行了pug get+updated
pubspec.yaml
+pub-global-activate-aducture
4.0.0-B1
。这没有取得任何进展

我发现的其他建议是更改密码身份验证方法。我修改了
pg_hba.conf
以包含以下行:

host    all             all             127.0.0.1/32            md5 
但这也没有取得任何成功

我不知道该往哪个方向搜索了。我注意到类似的问题,但没有实际的答案。
有什么建议吗?

已解决。问题似乎出在PostgreSQL 13上。 我安装了PostgreSQL 12.4并运行命令来创建数据库迁移文件。然后运行数据库更新命令,它立即工作