Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Spring Boot use separate user for flywaydb and JPA

Tags:

flyway.password=pwd2 #does not take effect
flyway.user=user2 #does not take effect
spring.datasource.username=user1
spring.datasource.password=pwd1

user1/pwd1 is used to run flyway db migrations as well as DML operations via JPA. Is there a way to get flyway db to use another credentials?

like image 613
Ajay Avatar asked Feb 12 '17 09:02

Ajay


1 Answers

I got it to work by specifying flyway.url too.

like image 137
Ajay Avatar answered Sep 21 '22 10:09

Ajay