Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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

enter image description here

Please help me out on this. Thanks.

like image 719
Jyotirmay Avatar asked Apr 01 '16 07:04

Jyotirmay


1 Answers

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.

like image 169
Burki Avatar answered Sep 18 '22 16:09

Burki