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

python3.6时间不合法 #84

Open
0215AndrewFeng opened this issue Jan 25, 2021 · 2 comments
Open

python3.6时间不合法 #84

0215AndrewFeng opened this issue Jan 25, 2021 · 2 comments

Comments

@0215AndrewFeng
Copy link

python binlog2sql\binlog2sql.py -h 192.168.0.110 -P 33306 -u root -p 'pamier' -d baiyue_local_test -t room --start-file 'mysql-bin.000072' --start-datetime '2021-01-25 00:00:00'

usage: binlog2sql.py [-h HOST] [-u USER] [-p [PASSWORD [PASSWORD ...]]]
                     [-P PORT] [--start-file START_FILE]
                     [--start-position START_POS] [--stop-file END_FILE]
                     [--stop-position END_POS] [--start-datetime START_TIME]
                     [--stop-datetime STOP_TIME] [--stop-never] [--help]
                     [-d [DATABASES [DATABASES ...]]]
                     [-t [TABLES [TABLES ...]]] [--only-dml]
                     [--sql-type [SQL_TYPE [SQL_TYPE ...]]] [-K] [-B]
                     [--back-interval BACK_INTERVAL]
binlog2sql.py: error: unrecognized arguments: 00:00:00'

@michael-liumh
Copy link

你是用python2运行的吧?

@HunterLomo
Copy link

HunterLomo commented May 22, 2023

我刚开始也遇到这个问题,后来调试发现windows下需要使用双引号对参数进行处理。

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

4 participants
@HunterLomo @michael-liumh @0215AndrewFeng and others