V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
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 · 2016-07-19 22:07:52 +08:00 · 3761 次点击
    这是一个创建于 2830 天前的主题,其中的信息可能已经有所发展或是发生改变。

    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 条回复    2016-07-20 09:25:13 +08:00
    lc1450
        1
    lc1450  
       2016-07-20 09:25:13 +08:00
    python -m pwiz -e mysql -H 111.111.111.111 -p 3306 -u root -P root wpdb
    应该这样写,选项和参数之间要有空格,和 mysql 参数不太一样.
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   3393 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 00:40 · PVG 08:40 · LAX 17:40 · JFK 20:40
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.