H2 ๋ฐ์ดํฐ๋ฒ ์ด์ค๋?
๋๋ ์ ๋ชจ๋ฅธ๋ค.
php myadmin์ฒ๋ผ ์น์์ ์ฝ์์ด์ฉ์ด ๊ฐ๋ฅํ๋ค. ๊ฐ๋ณ๊ณ ํธ๋ฆฌํ๋ค. ๋ Spring Boot์ ์ฐ๋ํ์ฌ ์ฌ์ฉํ๊ณ ์๋ค.
์ค์นํ๊ธฐ
www.h2database.com/html/main.html
H2 Database Engine
H2 Database Engine Welcome to H2, the Java SQL database. The main features of H2 are: Very fast, open source, JDBC API Embedded and server modes; in-memory databases Browser based Console application Small footprint: around 2 MB jar file size Suppor
www.h2database.com
์ด๊ณณ์์ zip ํ์ผ์ ๋ค์ด๋ฐ์์ค๋ค.
All platforms๋ฅผ ๋ฐ๊ธธ ๋ฐ๋๋ค.
๋ค์ด๋ฐ์ ZIPํ์ผ์ ์์ถ์ ํ์ด์ค๋ค ์ํ๋ ๊ฒฝ๋ก๋ก ์ฎ๊ฒจ์ค๋ค.
์คํํ๊ธฐ
์คํ์ ์ํด h2/bin/h2.bat ํ์ผ์ ์คํํด์ค๋ค.
์คํํ๋ฉด ์๋์ ๊ฐ์ ์ฝ์๊ณผ ๊ธฐ๋ณธ ๋ธ๋ผ์ฐ์ ์ฐฝ์์ ์น์ฝ์ ๋ก๊ทธ์ธ ํ๋ฉด์ด ๋ฌ๋ค.
์น์ฝ์์ ์ด์ฉํ๊ธฐ ์ํด์ ์ cmd์ฐฝ์ ๋๋ฉด ์๋๋ค. ์ cmd์ฐฝ์ ๋๋ฉด ์น์ฝ์ ์ฐ๊ฒฐ์ด ๋ํจ๋ค.
sa / '' ๋ ๊ธฐ๋ณธ ๋ฃจํธ๊ณ์ ์ธ๋ฏ ํ๋ค. ์ ์ํ๋ก ์ฐ๊ฒฐํ์ฌ ์ฌ์ฉํด๋ ์๊ด์๋ค. ๊ทธ๋๋ก ์ฐ๊ฒฐ.
๊ทธ๋ผ ์๋์ ๊ฐ์ด ์ฝ์์ด ๋ฌ๋ค. Mysql ๋ฌธ๋ฒ์ด ๋จน๋๋ค. ๋ฐ๋ก ๋ณด์ด๋ Textarea๊ฐ ๋ช ๋ น์ฐฝ์ด๋ค.
์ ํํ ์ด๋ค DB์ธ์ด๋ฅผ ์ฌ์ฉํ๋์ง, ์์ฒด ์ธ์ด๋ฅผ ์ฌ์ฉํ๋์ง ์ ๋ชจ๋ฅด์ง๋ง Mysql ๋ช ๋ น์ ์ฌ๋งํด์ ๋ค ๋จน์ ๊ฒ์ด๋ค.
์ฌ์ง์ BOARD ํ ์ด๋ธ์ ๋ด๊ฐ ๊ฐ์ธ์ ์ผ๋ก ์์ฑํ๊ฒ์ด๋ ์ ๊ฒฝ์ฐ์ง ์์๋ ๋๋ค.
Spring Boot์ ์ฐ๋ํ๊ธฐ
๋ค์ ์ฝ๋๋ค์ ์ถ๊ฐํ๋ค.
pom.xml - <dependencies>ํ์
<dependency>
<groupId>com.h2database</groupId>
<artifactId>h2</artifactId>
<scope>runtime</scope>
</dependency>
application.properties
spring.datasource.driver-class-name=org.h2.Driver
spring.datasource.url=jdbc:h2:tcp://localhost/~/test
spring.datasource.username=sa
spring.datasource.password=
์๊น ๋ดค๋ sa/'' ๊ธฐ๋ณธ ๊ณ์ ์ ๋ก๊ทธ์ธํ๊ธฐ ์ํจ์ด๋ค. ๊ณ์ ๋ ์์ผ๋ฉด ๊ทธ๊ฑฐ์ ๋ง๊ฒ ์์ฑ. JPA ๊ด๋ จํ๊ฑด ๋ฐ๋ก ์์ฑํ์ง ์๊ฒ ๋ค.
NodeJS๋ฅผ ๋จผ์ ์ ํ๊ณ ์คํ๋ง๋ถํธํ๋ฉด ์ ๋ง ํ๋ค ๊ฒ์ด๋ค. ์คํ๋ง๋ณด๋ค ์ฝ์ง๋ง, ๊ทธ๋๋ ์ธํ ์ ๊ณจ๋จธ๋ฆฌ ์ฉ๋ ๋ถ๋ถ์ด ๋ง๋ค.
๋ค๋ค ์ข์ ํ๋ฃจ ๋์ธ์ ~!
'studies > Back-end' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
Apache์ํ์น๋ก Tensorflow.js ์ฌ์ฉ์ ์ํ ๋ก์ปฌ ํธ์คํธ ์๋ฒ ๋ง๋ค๊ธฐ (0) | 2021.04.17 |
---|---|
ํ ์ํ๋ก์ฐ์ mobilenet ๋ชจ๋ธ์ ๋ผ์ฟค์ด๋ ๋จ์ด๋ฅผ ๋ชจ๋ฅธ๋ค (0) | 2021.04.17 |
[MongoDB] create user (0) | 2021.03.15 |
[MongoDB] Roboto 3T ์ฌ์ฉ๋ฒ (0) | 2021.03.15 |
[Unity] Visual Studio (2019) ํ๊ธ ๊นจ์ง ํด๊ฒฐ Unity3d Scripts C# (0) | 2021.02.28 |