728x90
runtimeOnly 'org.mariadb.jdbc:mariadb-java-client'
application.properties
spring.datasource.driver-class-name=org.mariadb.jdbc.Driver
spring.datasource.url=jdbc:mariadb://localhost:3306/DB명
spring.datasource.username=userName
spring.datasource.password=password
#update the schema with the given values.
spring.jpa.hibernate.ddl-auto=update
#To beautify or pretty print the SQL
spring.jpa.properties.hibernate.format_sql=true
#show sql
spring.jpa.properties.hibernate.show-sql=true
#show parameter binding
logging.level.org.hibernate.type.descriptor.sql=DEBUG
logging.level.org.hibernate.SQL=DEBUG
728x90
'Web > DB' 카테고리의 다른 글
[mysql] with 절(가상테이블) 01 (0) | 2023.05.01 |
---|---|
[mariaDB Mac] 설치 팁 (0) | 2023.04.13 |
MySQL 데이터베이스 스키마/테이블/컬럼 네이밍 설계 규칙 (0) | 2023.03.19 |
[Spring postgreSQL] 연동하기 (0) | 2023.03.17 |
[SQL] 정규화(Normalization) (0) | 2023.03.05 |