New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow url to include the username/password #2132
Comments
Did it work with |
Any news? |
sorry, haven't gotten a chance to test yet. will do! |
Closing due to lack of response. |
@axelfontaine let's re-open this issue. it did not work. attempt one:
attempt two:
fails with:
here's my wishlist of ways I wish FLYWAY could smartly parse the database url:
I would be happy to help with any and all of the above. thanks @axelfontaine! |
Note that this is primarily a limitation of the PostgreSQL JDBC driver, so I opened an issue directly with them: pgjdbc/pgjdbc#1346 Note that they already do support the following syntax:
|
hey @axelfontaine I just tried using flyway -url="jdbc:postgresql://host-dev-us-east-1.perso.aws.arc.pub:5432/history?user=uzr&password=psswrd" -locations="filesystem:$(pwd)/sql" migrate |
V6.3.2 will not prompt if it sees user and password in the URL (in the form the Postgres driver is happy with, such as |
Can confirm that this approach doesn't work with the gradle plugin + JDBC/MySQL, unfortunately |
Which version and edition of Flyway are you using?
Flyway Community Edition 5.1.4 by Boxfuse
Which client are you using? (Command-line, Java API, Maven plugin, Gradle plugin)
Command-line
Which database are you using (type & version)?
Postgres 10.0
Which operating system are you using?
macOS
Currently,
FLYWAY_URL
only acceptsjdbc:postgresql://{host}:{port}/{dbname}'
. I tried giving it a full database uri such as:jdbc:postgresql://{user}:{pass}@{host}:{port}/{dbname}
but that didn't work- it still asked me for the username.Any chance it can parse out the user and pass right out of the
FLYWAY_URL
?Thanks!
The text was updated successfully, but these errors were encountered: