psql: server does not support SSL, but SSL was required

别来无恙 提交于 2019-12-10 13:22:44

问题


Trying to connect to postgresql server using command prompt.

Command used:

psql "sslmode=require host=localhost dbname=test"

Error thrown:

psql: server does not support SSL, but SSL was required

Please help me out on this. Thanks.


回答1:


This link suggests that you might try

psql "sslmode=disable host=localhost dbname=test"

or (probably better)

psql "sslmode=allow host=localhost dbname=test"

That way you should be able to connect to your server.



来源:https://stackoverflow.com/questions/36350600/psql-server-does-not-support-ssl-but-ssl-was-required

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!