Skip to content
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

Commandline: Add -n flag to suppress credentials prompt #1477

Closed
zombor opened this issue Nov 28, 2016 · 0 comments
Closed

Commandline: Add -n flag to suppress credentials prompt #1477

zombor opened this issue Nov 28, 2016 · 0 comments

Comments

@zombor
Copy link

zombor commented Nov 28, 2016

What version of Flyway are you using?

4.0.3

Which client are you using? (Command-line, Java API, Maven plugin, Gradle plugin, SBT plugin, ANT tasks)

Command-line

What database are you using (type & version)?

postgres, mysql

What operating system are you using?

linux

What did you do?

(Please include the content causing the issue, any relevant configuration settings, and the command you ran)

Using a valid jdbc connection uri that includes a username and password to connect to the database, such as:

jdbc:mysql://localhost/db?user=xxx&password=xxx
jdbc:postgresql://localhost/db?user=xxx&password=xxx

Results in prompt for username/password

What did you expect to see?

No prompt for username/password, with the jdbc connection params used for authentication

What did you see instead?

Username/password prompts on STDIN

This worked on v3.0 and I'm trying to upgrade to v4 and ran into this issue. It looks like the following commits are relevant:

a2d1941
0e1905e

@axelfontaine axelfontaine added this to the Flyway 4.1 milestone Jan 31, 2017
@axelfontaine axelfontaine changed the title Cannot use username/password in connection JDBC URI Add -n flag to suppress credentials prompt Jan 31, 2017
@axelfontaine axelfontaine changed the title Add -n flag to suppress credentials prompt Commandline: Add -n flag to suppress credentials prompt Jan 31, 2017
axelfontaine pushed a commit to flyway/flywaydb.org that referenced this issue Jan 31, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants