gpt4 book ai didi

postgresql - Aqueduct 数据库升级无法连接到数据库

转载 作者:行者123 更新时间:2023-12-03 04:35:20 26 4
gpt4 key购买 nike

  • Windows 10
  • postgres版本-13.0
  • Aqueduct 版本-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天!我很高兴...
    我希望我能帮助别人。

    关于postgresql - Aqueduct 数据库升级无法连接到数据库,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/64199483/

    26 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com