MySQL Forums
Forum List  »  Connector/Python

compress is not working for Windows 10
Posted by: Alex Liu
Date: May 22, 2020 08:19AM

mysql.connector.connect(host='', user='user_name', password='xxxx', database='test', charset='utf8mb4', collation='utf8mb4_unicode_520_ci', compress=True)

When I use this code do

sql = 'Select * from somewhere'

at MacOS, it's working. But not working at Windows 10. There is an error message:
valueerror("packet is not an error packet")

If I remove compress=True, everything is fine.

Python version: 3.7
mysql-connector-python: 8.0.20

Options: ReplyQuote

Written By
compress is not working for Windows 10
May 22, 2020 08:19AM

Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.