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

Without Password in alias_dsn but fail connection immediately instead of ask for password #692

Open
kioipp opened this issue Nov 20, 2018 · 1 comment

Comments

@kioipp
Copy link

kioipp commented Nov 20, 2018

Version : 1.19.0

In Docs showed:

If a password is not supplied and mycli cannot connect to the server, it will prompt you to enter one. This is helpful so you do not have to store your password in a plaintext configuration file.

So I write the infomation in .myclirc:

[alias_dsn]
hk-light = mysql://read_only_user@xxxrds.com:3306/gateway

Run connetion:

λ mycli -d hk-light
(1045, u'Authentication Failed For RDS maybe username or password is incorrect')

If I full filled the password in .myclirc:

[alias_dsn]
hk-light = mysql://read_only_user:password@xxxrds.com:3306/gateway

The run the same connetion:

λ mycli -d hk-light
mysql 5.6.16-log
mycli 1.19.0
Chat: https://gitter.im/dbcli/mycli
Mail: https://groups.google.com/forum/#!forum/mycli-users
Home: http://mycli.net
Thanks to the contributor - Scrappy Soft
gateway>

So how can I use DSN but not leave the plain password text ?

@qiaohao9
Copy link

qiaohao9 commented Dec 24, 2018

it works for me.

Is caused by other reasons?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants