How to return str from MySQL using mysql.connector?

后端 未结 5 1070
慢半拍i
慢半拍i 2020-12-16 16:06

I\'m trying to use MySQL Connector/Python from mysql.com with Python 3.

I have tables in UTF-8 coding, and when I fetch the rows, all my chars columns returned like

5条回答
  •  不知归路
    2020-12-16 17:03

    Adding mysql-connector-python==8.0.17 to requirements.txt resolved this issue for me.

提交回复
热议问题