IntelliJ IDEA H2 Support: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 8: Line 8:
An external H2 instance must be running and exposing access over network. This article explains how to do that: [[H2#Accessing_an_H2_Instance_Embedded_within_a_Different_JVM|Accessing an H2 Instance Embedded within a Different JVM]].  
An external H2 instance must be running and exposing access over network. This article explains how to do that: [[H2#Accessing_an_H2_Instance_Embedded_within_a_Different_JVM|Accessing an H2 Instance Embedded within a Different JVM]].  


Right edge tabs -> Database -> + -> Driver -> PostgreSQL -> make sure it's downloaded and it is new enough.
Right edge tabs -> Database -> + -> Driver -> H2 -> make sure it's downloaded and it is new enough.


Right edge tabs -> Database -> + -> Data Source -> PostgreSQL:
Right edge tabs -> Database -> + -> Data Source -> H2:


Name: Docker Posgres
Name: "H2 instance in another JVM"


Host: localhost
Host: localhost


Port: 5432
Database: mem


Database: postgres
User: sa


User: admin
Password: leave it empty
 
Password: the password you used during the container configuration phase. Select "Remember password".


Test Connection.
Test Connection.


Apply -> OK.
Apply -> OK.

Revision as of 15:52, 19 October 2018

Internal

Overview

An external H2 instance must be running and exposing access over network. This article explains how to do that: Accessing an H2 Instance Embedded within a Different JVM.

Right edge tabs -> Database -> + -> Driver -> H2 -> make sure it's downloaded and it is new enough.

Right edge tabs -> Database -> + -> Data Source -> H2:

Name: "H2 instance in another JVM"

Host: localhost

Database: mem

User: sa

Password: leave it empty

Test Connection.

Apply -> OK.