解决 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

你可能感兴趣的:(解决 pq: SSL is not enabled on the server)