渡槽数据库升级无法连接到数据库

问题描述

  • windows 10
  • postgres版本-13.0
  • 渡槽版本-3.3.0 + 1
  • 正确创建数据库用户
  • 创建了迁移

我可以使用psql连接到数据库

postgresql.conf包含listen_addresses = '*',port = 5432

当我输入命令时:

aqueduct db upgrade --connect postgres://app_user:password@localhost:5432/app

我收到错误消息:

There was an error connecting to the database 'app_user:password@localhost:5432/app'. Reason: unable to connect to database.

我已经搜索了数百个来源。这不是我唯一面临的一个新问题。还没有人解决

英雄,请救救我!

解决方法

不幸的兄弟们!

我找到了解决这个问题的方法!

我将 PostgreSQL的版本回滚到10.14 。很稳定。

我的文件pubspec.yaml更改为:

dependencies:
  aqueduct: ^4.0.0-b1

dev_dependencies:
  test: ^1.0.0
  aqueduct_test: ^2.0.0-b1

重要提示。输入命令:pub global activate aqueduct 4.0.0-b1

我无法解决此问题3天!我很高兴...

我希望我能帮助别人。