question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

when I run

python -m pwiz --host=127.0.0.1 --port=3306 --user=root --password=root -e mysql forex

result

Usage: pwiz.py [options] database_name

pwiz.py: error: --password option does not take a value

when I run

python -m pwiz --host=127.0.0.1 --port=3306 --user=root -P root -e mysql forex

result

Password: 

It need to input password again.Why?

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
churbiscommented, Aug 23, 2018

Interesting that you chose not to accept the passwords on the command line which is an explicit choice that the end user makes, however the pwiz tool itself echos the password into the console or is piped into the file you store the models in without explicitly telling the user that their password is going to get written. This has led me to accidentally commit a password into a repo. You should be able to specify os.env variables to retrieve the passwords in the generated files, or else find some other paradigm to set the database on the BaseModel.

0reactions
coleifercommented, Jul 19, 2021

pwiz is not typically something intended for use outside of interactive sessions, since it is really just a generator for skeleton code. You could, for your purposes, probably just look at the code inside pwiz’s main and write your own short script.

Read more comments on GitHub >

github_iconTop Results From Across the Web

CT WiZ Username Password Issues for Existing Accounts
Username or password issues for existing CT WiZ user accounts ... “This is an invalid username/password and/or your account is locked”, ...
Read more >
Password Wizard
It is a self-service password portal available to assist you when you forget your password or would like to change it. -Make sure...
Read more >
How to change MoneyWiz Cloud password?
If your password is easy to guess, we strongly suggest to change it to something more secure!
Read more >
Admin Account Login / Password Reset - Web Wiz Forums
The problem is that passwords are 160bit one way encrypted for security reasons so hackers can not get hold of your password. This...
Read more >
Adding a Wi-Fi switch in the system — WiZ Help Center
If necessary, provide your Wi-Fi password. Then start the pairing ... Connect to it, then go back to the WiZ app to complete...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found