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

Provide a password using the command line for mysqlrestorep. #1

Open
e0ipso opened this issue Sep 9, 2014 · 2 comments
Open

Provide a password using the command line for mysqlrestorep. #1

e0ipso opened this issue Sep 9, 2014 · 2 comments

Comments

@e0ipso
Copy link
Contributor

e0ipso commented Sep 9, 2014

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.

@deviantintegral
Copy link
Owner

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.

@e0ipso
Copy link
Contributor Author

e0ipso commented Sep 9, 2014

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.

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