连接 PostgreSQL 报错,提示 No SSL enabled connection from this host is configured.

Power Query 青年西红柿 ⋅ 于 2018-11-26 11:19:19 ⋅ 最后回复由 yangyi1225 2018-11-27 09:16:22 ⋅ 2731 阅读

大家好,在excel新建查询中连接PostgreSQL,报错情况如下:

DataSource.Error: PostgreSQL: SSL connection requested. No SSL enabled connection from this host is configured.
详细信息:
DataSourceKind=PostgreSQL
DataSourcePath=10.4.37.27:15432;digital
Message=SSL connection requested. No SSL enabled connection from this host is configured.
ErrorCode=-2147467259

成为第一个点赞的人吧 :bowtie:
回复数量: 1
  • yangyi1225
    2018-11-27 09:16:22

    在古哥上爬了一下,发现了一种可能的解决方案:

    Hi everyone,
    Npgsql drivers have a different behavior in the last few months' versions, that's why this is happening. We're fixing this now, it'll be in PBI releases in the next few months.
    For the workaround, you can change the encryption setting of your database credential:

    去掉安全链接

    Sorry about the inconvenience and thanks for reporting this to us!

    其实重点就是去掉链接时使用安全加密连接的选项。

    原贴在此 可以去看下,还有些其他说法。

暂无评论~~
  • 请务必阅读并严格遵守《社区管理规范与使用说明》
  • 支持 Markdown 格式, **粗体**、~~删除线~~、`单行代码`, 更多语法请见这里 Markdown 语法
  • 支持表情,使用方法请见 发送表情,可用的 Emoji 见 :metal: :point_right: Emoji 列表 :star: :sparkles:
  • 上传图片, 支持拖拽和剪切板粘贴上传, 格式限制 - jpg, png, gif
  • 不支持上传附件,请尽可能用文字和图片将问题描述清楚,如实在需要上传附件,可上传到 共享网盘 后分享链接
  • 发布框支持本地存储功能,会在内容变更时保存,「提交」按钮点击时清空
  请勿发布不友善或者负能量的内容。与人为善,比聪明更重要!
Ctrl+Enter