Skip to content

Commit e58cf5b

Browse files
committed
Add MySQL and Flyway configuration so the application starts
1 parent 29f259a commit e58cf5b

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# MySQL properties
2+
spring.datasource.url=jdbc:mysql://localhost:3306/MYSQL_DEMO
3+
spring.datasource.username=
4+
spring.datasource.password=
5+
spring.datasource.driver-class-name=com.mysql.jdbc.Driver
6+
7+
# Flyway properties
8+
spring.flyway.locations=classpath:db/mysql/migration
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
CREATE TABLE IF NOT EXISTS MYSQL_DEMO.USER (
2+
ID INT NOT NULL AUTO_INCREMENT,
3+
FIRST_NAME VARCHAR(50) NOT NULL,
4+
LAST_NAME VARCHAR(50) NOT NULL,
5+
ADD_TS DATETIME(6) NOT NULL,
6+
PRIMARY KEY (ID))
7+
ENGINE = InnoDB;

0 commit comments

Comments
 (0)