Connecting to a database From IntelliJ Running in WSL2
I’m running Intellij inside Ubuntu on WSL 2, and today I had problems connecting to a database. It would connect randomly and then quickly lose connection. It turns out that the problem was with the way that IntelliJ stores passwords. When running in Linux, IntelliJ uses the Gnome Keyring, which I did not have running. The quick solution to the problem was to switch IntelliJ’s password save setting to “Never”.
I probably should invest some time in setting up my zsh files for WSL.