Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

3
  • 1
    You can store password in ~/.my.cnf or you can use -pPassword ? stackoverflow.com/questions/9293042/… Commented Feb 6, 2014 at 6:48
  • 3
    @Rahul: -p MySecretPassword would show in the output of ps and the history, amongst other places. Commented Feb 6, 2014 at 7:11
  • Yes, storing password in options file is probably the best way out of this. Also, I'd like to confirm if I understand right what's happening with those commands. Commented Feb 6, 2014 at 7:41