mysql-parallel icon indicating copy to clipboard operation
mysql-parallel copied to clipboard

Provide a password using the command line for mysqlrestorep.

Open e0ipso opened this issue 11 years ago • 2 comments

I want to be able to do:

drush sql-drop -y && \
/home/vagrant/mysql-parallel/mysqlrestorep.sh user database directory && \
drush updb -y && \
drush fra -y

But due to the interactive password input that keeps running in a background tab until I remember to put a password. Having an optional password in the command line would be nice.

e0ipso avatar Sep 09 '14 13:09 e0ipso

The problem with that is that unless you do some serious effort to rewrite your command line, other users can see the password via ps or top.

I'm open to pull requests though if you know of an easy way to solve that.

deviantintegral avatar Sep 09 '14 15:09 deviantintegral

I was thinking more of an "I don't care about everyone knowing this password" kind of situation, letting the user be responsible for exposing credentials. I understand your concerns though.

e0ipso avatar Sep 09 '14 15:09 e0ipso