繁体   English   中英

aqueduct db upgrade 无法连接到数据库

[英]aqueduct db upgrade can't connect to database

  • 窗口 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天没能解决这个问题! 我很高兴...

我希望我能帮助别人。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM