Postgresql 渡槽db升级可';无法连接到数据库 视窗10 postgres版本-13.0 渡槽版本-3.3.0+1 已正确创建数据库和用户 创建了迁移
我可以使用Postgresql 渡槽db升级可';无法连接到数据库 视窗10 postgres版本-13.0 渡槽版本-3.3.0+1 已正确创建数据库和用户 创建了迁移,postgresql,dart,aqueduct,Postgresql,Dart,Aqueduct,我可以使用psql连接到数据库 postgresql.conf包含listen\u地址='*',端口=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 co
psql
连接到数据库
postgresql.conf包含listen\u地址='*',端口=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.
dependencies:
aqueduct: ^4.0.0-b1
dev_dependencies:
test: ^1.0.0
aqueduct_test: ^2.0.0-b1
我收到错误:
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.
dependencies:
aqueduct: ^4.0.0-b1
dev_dependencies:
test: ^1.0.0
aqueduct_test: ^2.0.0-b1
我已经搜索了数百个来源。这是一个新问题,我不是唯一面临的人。还没有人解决它
英雄,请帮帮我 你好,不幸中的兄弟们
我找到了解决这个问题的办法
我将PostgreSQL的版本回滚到10.14。它很稳定
我的文件pubspec.yaml
我改为:
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.
dependencies:
aqueduct: ^4.0.0-b1
dev_dependencies:
test: ^1.0.0
aqueduct_test: ^2.0.0-b1
但很重要。输入命令:发布全局激活导水管4.0.0-b1
我有三天没能解决这个问题!我很高兴
我希望我能帮助其他人。您能使用
psql
进行连接吗,例如psql-d app-U app\U user-h localhost-p 5432
?您的pg_hba.conf
文件的内容是什么?@adriankaver是的,我可以。@adriankaver pg_hba.conf-listen_addresses='*',port=5432。将前面的信息添加到您的问题中。也回答了以下问题。这将避免其他人通过评论进行工作。导水管是否与Postgres服务器在同一台计算机上?。你看过Postgres日志了吗?@AdrianKlaver对不起,我是这个平台的新手。是的,在一台机器里。日志\目的地-------------------stderr(1行)你在谈论这个吗?