LoginSignup
17
8

More than 5 years have passed since last update.

MacでH2を使う。

Last updated at Posted at 2014-04-17

H2をダウンロード

↓こちらから
http://www.h2database.com/html/main.html

オープン

Macの場合All Platformsのzipですね。

ダウンロードしたzipを解凍してどっかに配置。
私はApplicationディレクトリ内に配置しました。

↓このような内容ですね。
オープン

起動

起動はbinの中のシェルを実行してあげます。

$ pwd
/Applications/h2/bin
$ ./h2.sh

ブラウザが開いた。
オープン

なので、URLをlocalhostにしてみた。OK。
オープン

あとは、connectしてあげれば、指定の位置にDBのファイルを作ってくれます。この場合は、~/testディレクトリに作ってくれます。

以上。

17
8
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
17
8