Search code examples
javapostgresqlintellij-ideajdbc

How to add a postgresql jdbc driver to intellij?


I'm trying to add a driver, and this page tells me to open View | Tool Windows | Database https://www.jetbrains.com/help/idea/managing-data-sources.html

But there is no such tool window. See picture

enter image description here

I tried Alt-3 since that option is missing in the menu, but nothing happens.

How do I add the postgresql driver from Intellij? I already have the mysql driver.

IntelliJ version: IntelliJ IDA 2020.2.1 Community edition


Solution

  • As you can see here, the Community edition does not include the database tool.

    You'll need the Ultimate edition for that.

    Then, if you want to just add the library to your project, you can select the project root in IntelliJ, hit F4. Go to Project settings ==> Libraries

    Hit the + icon and choose Java.

    Then, browse to your driver jar file and select it.