[英]aqueduct db upgrade cannot connect to database
我在将渡槽服务器连接到 postgres 数据库时遇到问题。 我做过的信息和事情:
aqueduct db generate
创建迁移文件lit_test_user
GRANTED ALL ON lit_test_user
在postgresql.conf
设置
listen_addresses = '*'
port = 5432
在pg_hba.conf
添加的行
host all all 0.0.0.0/0 md5
host all all ::0/0 md5
现在我想使用命令连接到我的数据库:
aqueduct db upgrade --connect postgres://lit_test_user:czinczolada123@localhost:5432/lit_test
我得到的错误是: There was an error connecting to the database 'lit_test_user:czinczolada123@localhost:5432/lit_test'. Reason: unable to connect to database.
There was an error connecting to the database 'lit_test_user:czinczolada123@localhost:5432/lit_test'. Reason: unable to connect to database.
我不知道我做错了什么,因为使用 psql shell 连接就好了。
我将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
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.