Vscode-sqltools: Test Connection indicates connection wouldn't work, but it does

Created on 30 Jun 2020  路  7Comments  路  Source: mtxr/vscode-sqltools

After a recent update I cannot connect to a local instance of Postgres DB.

When testing connection I get The server does not support SSL connections right above the Save Connection button

triage

Most helpful comment

Below steps are work for me

  1. Open Settings at the right bottom corner in SQLTools Setting to edit setting.json directly by adding
    "pgOptions": {
    "ssl": false
    },
  2. Open file C:Usersxxxxxxx.vscodeextensionsmtxr.sqltools-driver-pg-0.1.0connection.schema.json, remove "ssl" group under "pgOptions"

Create a new connection and try to connect

All 7 comments

Actually I was wrong, I can connect to the database just fine, it's just that the Test Connection indicates I wouldn't be able to

I am seeing the same problem - but in fact fail to connect. I get nothing but The server does not support SSL connections. Can I set - somewhere - the connection to be non-ssl for this connection?

Same here, just get this error connecting my dev db.

Yeah, I'm able to connect using my old connection config. But anything new I create fails.

Yeah, I'm able to connect using my old connection config. But anything new I create fails.

My experience is exactly the same.

Hey guys, here is a workaround for this issue, click "Open settings" at the right bottom corner in SQLTools Settings page, edit the config directly to set:

...
"pgOptions": {
    "ssl": false
},
...

Reconnect and you will do the trick.

Below steps are work for me

  1. Open Settings at the right bottom corner in SQLTools Setting to edit setting.json directly by adding
    "pgOptions": {
    "ssl": false
    },
  2. Open file C:Usersxxxxxxx.vscodeextensionsmtxr.sqltools-driver-pg-0.1.0connection.schema.json, remove "ssl" group under "pgOptions"

Create a new connection and try to connect

Was this page helpful?
0 / 5 - 0 ratings

Related issues

abenhamdine picture abenhamdine  路  6Comments

ladychili picture ladychili  路  7Comments

tchase56 picture tchase56  路  4Comments

sideshow-systems picture sideshow-systems  路  4Comments

ntt2k picture ntt2k  路  4Comments