V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
yanchao7511461
V2EX  ›  Python

pwiz 命令提示的错误莫名其妙,有人能解吗?

  •  
  •   yanchao7511461 · Jul 19, 2016 · 4608 views
    This topic created in 3579 days ago, the information mentioned may be changed or developed.

    C:\Users\mypc>python -m pwiz -e mysql -H 111.111.111.111 -p3306 -uroot -Proot wpdb > wpmodel.py

    Usage: pwiz.py [options] database_name

    pwiz.py: error: no such option: -1

    ip 已经隐藏成 111.111.111.111. 这个 error 提示好奇怪啊。

    1 replies    2016-07-20 09:25:13 +08:00
    atx
        1
    atx  
       Jul 20, 2016
    python -m pwiz -e mysql -H 111.111.111.111 -p 3306 -u root -P root wpdb
    应该这样写,选项和参数之间要有空格,和 mysql 参数不太一样.
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   934 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 42ms · UTC 21:51 · PVG 05:51 · LAX 14:51 · JFK 17:51
    ♥ Do have faith in what you're doing.