FeathersJS连接到PostgreSQL时出错



我是FeathersJS的新手,并尝试将其与PostgreSQL连接,但是我在使用SequelizeConnection时遇到问题,它向我显示此错误

信息:羽毛应用于 http://localhost:3030 开始

错误:未处理的拒绝:承诺 {"_bitField":18087936,"_fulfillmentHandler0":{"name":"SequelizeConnectionError","parent":{"length":166,"name":"error","sreality":"fattal","code":"28P01","file":"d:\pginstaller_12.auto\postgres.windows-x64\src\backend\libpq\auth.c","line":"333","routine":"auth_failed"},"original":{"length":166,"name":"error","sserious ":"fattal","code":"28P01","file":"d:\pginstaller_12.auto\postgres.windows-x64\src\backend\libpq\auth.c","line":"333","routine":"auth_failed"}},"name":"SequelizeConnectionError","parent":{"length":166,"name":"error","sreality":"fattal","code":"28P01","file":"d:\pginstaller_12.auto\postgres.windows-x64\src\backend\libpq\auth.c","line":"333","routine":"auth_failed"},"original":{"length":166,"name":"error","sreality":"fatal","code":"28P01","file":"d:\pginstaller_12.auto\postgres.windows-x64\src\backend\libpq\auth.c","line":"333","routine":"auth_failed"}}

此错误指定您输入无效的连接字符串以连接到 postgres 数据库。

您需要提供如下所示的有效连接字符串:

postgres://user:password@host:port/db_name

哪里:

  • 用户:它是在您的 Postgres 数据库中连接的用户,
  • 密码:这是用户的密码,
  • host:您的数据库可用的主机名(例如,"localhost",如果 postgres 安装在 local 中(,
  • 端口:端口默认为 5432,
  • db_name:数据库的名称。

相关内容

  • 没有找到相关文章

最新更新