3
6

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

H2 databaseインストール Linux

Posted at

やること

CentOSにH2databaseをインストールしてブラウザで確認するまで

必要なもの

Java

インストール手順

  1. wget http://www.h2database.com/h2-2017-03-10.zip
  2. unzip h2-2017-03-10.zip
  3. cd h2
  4. echo webAllowOthers=true > ~/.h2.server.properties
  5. java -jar bin/h2-1.4.194.jar

webAllowOthers=trueはremote connectionを有効にするための設定
あとwebPortとwebSSLという項目があるっぽい(調べてない)

アクセス

http://localhost:8082にアクセスするとログイン画面が出てくる

JDBC:URLに
jdbc:h2:tcp://localhost/~/データベース名

と入力して接続テストを行い、問題なければ接続

その後はSQL普通に書いて

以上

参照

H2 tutorial

3
6
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
6

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?