Can ActiveRecord connect to PostgreSQL remotely and protect the DB password?

前端 未结 3 976
粉色の甜心
粉色の甜心 2021-02-06 16:51

I have a PostgreSQL DB on a remote VPS server (CentOS 5) and I\'d like to connect to have a Rails application connect to it from my local Mac laptop. On my laptop, I have the Ac

3条回答
  •  春和景丽
    2021-02-06 17:26

    I had a look online and there doesn't seem to be an option for what you're looking for and in fact the client library, libpq doesn't mention this either.

    My guess is that this is negotiated on your behalf within libpq. In any case, md5 is likely to be the default authentication method.

提交回复
热议问题