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

生成回滚sql报错:UnicodeDecodeError: 'utf-8' codec can't decode byte 0x99 in position 0: invalid start byte #119

Open
lengmianshi opened this issue Oct 28, 2024 · 0 comments

Comments

@lengmianshi
Copy link

lengmianshi commented Oct 28, 2024

mysql8 下做生成回滚sql出错:

Traceback (most recent call last):
  File "/home/xxx/binlog2sql/binlog2sql/binlog2sql.py", line 150, in <module>
    binlog2sql.process_binlog()
  File "/home/xxx/binlog2sql/binlog2sql/binlog2sql.py", line 121, in process_binlog
    self.print_rollback_sql(filename=tmp_file)
  File "/home/xxx/binlog2sql/binlog2sql/binlog2sql.py", line 129, in print_rollback_sql
    for line in reversed_lines(f_tmp):
  File "/home/xxx/binlog2sql/binlog2sql/binlog2sql_util.py", line 249, in reversed_lines
    block = block.decode("utf-8")
            ^^^^^^^^^^^^^^^^^^^^^
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x99 in position 0: invalid start byte
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

1 participant