R RPostgreSQL Connect to Remote Postgres Database with SSL

前端 未结 1 854
一向
一向 2021-01-12 10:55

I am trying to connect to a remote PostgreSQL database from within R using the RPostgreSQL package, and I am getting errors that appear to be related to the SSL

1条回答
  •  离开以前
    2021-01-12 11:25

    Thanks for posting! You actually helped us solve it. Here is how we did it:

    • Reboot your Mac into Recovery Mode by restarting your computer and holding down Command+R until the Apple logo appears on your screen.
    • Click Utilities > Terminal.
    • In the Terminal window, type in csrutil disable and press Enter.
    • Restart your Mac.
    • Open a Terminal.
    • Run sudo rm /usr/lib/libpq.5.dylib
    • Run sudo ln -s /Applications/Postgres.app/Contents/Versions/9.6/lib/libpq.5‌​.dylib
    • Now you can connect to the DB.

    0 讨论(0)
提交回复
热议问题