简体   繁体   English

无法在Windows上将PostgreSQL(通过SSL)与RPostgresql连接

[英]Can not connect PostgreSQL(over SSL) with RPostgresql on Windows

I can not connect PostgreSQL(on Heroku) with RPostgreSQL on Windows(64bit). 我无法将PostgreSQL(在Heroku上)与Windows(64位)上的RPostgreSQL连接。

I can connect local postgresql(not ssl) with RPostgreSQL on Windows. 我可以在Windows上使用RPostgreSQL连接本地postgresql(非ssl)。 I can connect PostgreSQL on Heroku from PgAdmin on Windows. 我可以从Windows上的PgAdmin连接Heroku上的PostgreSQL。 I can connect PostgreSQL on Heroku with RPostgreSQL on OSX and Linux. 我可以将Heroku上的PostgreSQL与OSX和Linux上的RPostgreSQL连接起来。

Only RPostgreSQL on Windows can not connect Heroku PostgreSQL. Windows上只有RPostgreSQL无法连接Heroku PostgreSQL。

Error message is: 错误信息是:

Error in postgresqlNewConnection(drv, ...) : 
  RD-DBI driver: (could not connect....xxxxx

Is there any solution? 有什么解决办法吗?

It's related to this issue: Can't create dbConnect to Postgres with SSL . 与此问题有关: 无法使用SSL创建dbConnect到Postgres One solution that worked for me (also with a Heroku DB) is to use the RPostgres package instead. 一个对我有用的解决方案(也适用于Heroku DB)是使用RPostgres软件包。 You can install the dev. 您可以安装开发。 version from Github: https://github.com/rstats-db/RPostgres . Github的版本: https//github.com/rstats-db/RPostgres

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM