如何从 Windows 10 台 PC 访问 Heroku 数据库中的 PostgreSQL 即服务?

How to access the PostgreSQL in Heroku Database as a Service from Windows 10 PC?

我在服务器上安装了 PostgreSQL 附加组件,然后在 Heroku CLI 中输入命令 heroku pg:psql postgresql-dimensional-16257 --app samar-db 以连接到数据库。但它给出了以下结果。

C:\Users\samar>heroku pg:psql postgresql-dimensional-16257 --app samar-db
--> Connecting to postgresql-dimensional-16257
psql (13.2)
WARNING: Console code page (437) differs from Windows code page (1252)
         8-bit characters might not work correctly. See psql reference
         page "Notes for Windows users" for details.
SSL connection (protocol: TLSv1.3, cipher: TLS_AES_256_GCM_SHA384, bits: 256, compression: off)
Type "help" for help.

如果审查问题需要任何进一步的信息,我会分享它们。

在 Whosebug 社区进行深入搜索后,我找到了问题的答案。 Solution for this question