3

I like Vim, enjoyed all the different plugins and dbext is one of them

However not happy with the fact that password is displayed as clear text on command line

Is there a way to configure dbext so it reads password from a file?

Ask and Learn
  • 8,661
  • 8
  • 37
  • 43

1 Answers1

3

Yes, there is and very easy to do

I tried following and it worked for me, this is one of my Mysql profile

let g:dbext_default_profile_live_export = 
'type=MYSQL:user=clear:passwd=`cat /Users/username/src/test/pw.txt`:dbname=abc

Just "cat" the file contains the password when you define the connection.

Now, I don't need to worry about others seeing my mysql user password from command line anymore.

Eric Leschinski
  • 146,994
  • 96
  • 417
  • 335
Ask and Learn
  • 8,661
  • 8
  • 37
  • 43
  • After I clicked "Ask question" button, I noticed there are some text at bottom of the page, "Answer your own question - knowledge sharing Q&A style" and that is what I am doing. I thought this should help someone. – Ask and Learn Oct 22 '13 at 22:37