解决pq: SSL is not enabled on the server

2014-11-24 11:41:24 · 作者: · 浏览: 1

解决pq: SSL is not enabled on the server
链接 postgresql 数据库
,如下报错:
pq: SSL is not enabled on the server
解决:
datasource = ”user=postgres password=***

host=localhost port=5432 dbname=testgo sslmode=disable“