mtxr / vscode-sqltools

Database management for VSCode
https://vscode-sqltools.mteixeira.dev?utm_source=github&utm_medium=homepage-link
MIT License
1.52k stars 306 forks source link

Can't add new connection #655

Closed alexey-rio closed 1 year ago

alexey-rio commented 4 years ago

Hi guys,

I've installed SQLTools extension for VS Code and when I am trying to add new connection - nothing happens. I can't see any errors popping up. Hence I've been unable to add a new connection to a DB.

Connection assistant is not being displayed.

VS Code version: 1.47.1 (system setup) SQLTools version: 0.22.10 OS: Windows 10 1809

rimutaka commented 4 years ago

While this problem is being looked into you can add a new connection manually to sqltools.connections in settings.json as described in https://vscode-sqltools.mteixeira.dev/driver/postgresql.

It probably won't take you far, though. Running queries returns a blank SQLTools Results pane. Looks like something's seriously broken ...

Query: select * from t_list

Output: a blank SQLTools Results pane

Log output:

['ext:main:info'] EXECUTING => sqltools.executeQuery
['ext:main:info'] EXECUTING => sqltools.getConnections
['ext:main:info'] EXECUTING => sqltools.getConnections
['ext:main:info'] EXECUTING => sqltools.getChildrenForTreeItem
['ext:main:info'] EXECUTING => sqltools.getChildrenForTreeItem
LuisEmilioJuarez commented 4 years ago

got this problem too please if you could look up into it thanks a lot image

hriziya commented 4 years ago

I am facing the same problem. may be something is broken in the latest version?

hriziya commented 4 years ago

I have added connection manually by modifying the sqltools.connections in settings.json and then again I can not see the query result.

image

jimrandell commented 4 years ago

Same with me (I hope this can be resolved, this is my fav SQLtool

image

gabrielcardoso30 commented 4 years ago

Ótima tarde a todos! Eu também estou com o mesmo problema... :(

image

gabrielcardoso30 commented 4 years ago

Fiz um downgrade de versão, resolveu, agora consigo usar :D Coloquei na versão 0.22.9

wscatao commented 4 years ago

Mesmo problema aqui? Como fez o downgrade @gabrielcardoso30 ?

bRaInT00T commented 4 years ago

Duplicate of #639

mtxr commented 4 years ago

Fixed on v0.22.11.

EugZol commented 3 years ago

Same error in 0.23.0.

AngelinCalu commented 3 years ago

This still seems to be an issue on the current version.

MarcelSchuermann commented 3 years ago

This still seems to be an issue on the current version.

Agree, the error still exists. Any solutions / workarounds?

pau1tuck commented 3 years ago

This is still a problem. Running the contributed command: 'sqltools.addConnection' failed. (mariadb on Arch Linux)

malocan commented 3 years ago
Снимок экрана 2021-09-10 в 16 34 24

The same issue. Still can not go to the next step of creating new connection

aecliam commented 3 years ago

same issue with me too. I've been trying to disable and enable like what others have said but it's still an error.

VolpiGiuliano commented 2 years ago

Same issue, and it always shows this message

Screenshot 2022-08-04 135902
gjsjohnmurray commented 2 years ago

@RagionierBolo yours looks more like #668

seeejj commented 2 years ago

I'm also facing this issue today in 2022. Any luck?

gjsjohnmurray commented 2 years ago

@seeejj did you try the suggestion at https://github.com/mtxr/vscode-sqltools/issues/668#issuecomment-993403972 to delete one instance of a duplicate connection definition?

Eruasa commented 2 years ago

@seeejj did you try the suggestion at #668 (comment) to delete one instance of a duplicate connection definition?

Doesn't sadly work if you don't have any connections at all. And I don't know how I can manually add a connection, since I have trouble understanding the syntax.

EDIT Just restarted VSCode, and now it works, no idea what changed, but I did restart it before like every time after I install an extension,

seeejj commented 2 years ago

@gjsjohnmurray Same thing to @Eruasa happened with me. Had restarted repeatedly when I was actively trying to fix it, it didn't work, and one day it did again.

I pretty much gave up trying to get VSCode to work, and didn't use SQLTools for a couple of weeks. Then one day, after many VSCode restarts since the day I had this issue, it suddenly worked again.

Vilgot-thy commented 2 years ago

Hi. Have the same problem but I'm geting this error image

gjsjohnmurray commented 2 years ago

@Vilgot-thy does the problem still happen after a complete reboot of the workstation? Perhaps https://github.com/microsoft/vscode/issues/125993

Vilgot-thy commented 2 years ago

Yes that did fix the error, but I stile only get this image

edit: seems to work now thanks you for the help

gjsjohnmurray commented 1 year ago

Starting with today's 0.27.1 release it should no longer be possible to define connections with duplicate IDs using the UI.

smm-h commented 1 year ago

You guys should check out this thread on SO:

https://stackoverflow.com/questions/50093144/mysql-8-0-client-does-not-support-authentication-protocol-requested-by-server

The top answer worked for me.

carolinaqvargas commented 1 year ago

Screenshot 2023-04-27 102303 Hi everyone, could you please help me with this issue? Successful connections won't appear on the side bar. Even after I click 'connect now' Thank you!

gjsjohnmurray commented 1 year ago

@carolinaqvargas from Command Palette (F1) please run Preferences: Open User Settings (JSON) and review the sqltools.connections object. Are there any duplicate names?

Temporarily disable the object by renaming it, e.g. to Xsqltools.connections. Save the change, then restart VS Code. Define a new connection, testing it when prompted. Does the tree now show this entry?