kristijanhusak / vim-dadbod-ui

Simple UI for https://github.com/tpope/vim-dadbod
MIT License
1.54k stars 94 forks source link

Prompt for password #204

Closed sQVe closed 4 months ago

sQVe commented 1 year ago

Hey, 👋

I'm confused after going through the issues here and on dadbod, since it seems like there should be support for prompting for password input. I'm trying to connect to a password protected MySQL database, but I'm unable to do so unless I add the password when inputting the connection - which in turn saves the password in clear text in XDG_DATA_HOME.

Is there a way for me to add connections to password protected databases without saving the password on file?

Stianhn commented 9 months ago

@sQVe you can use the mysql-config-editor to create a login-path. https://dev.mysql.com/doc/refman/8.0/en/mysql-config-editor.html

kristijanhusak commented 4 months ago

You can now use function to generate a connection string. See production example in https://github.com/kristijanhusak/vim-dadbod-ui#via-gdbs-global-variable