MySQLdb Python module operation error mysql 2019: Can not initialize character set utf-8

I use python's MySQLdb module implements a mysql client, at the time of the test, the following error occurred

MySQLdb Python module operation error mysql 2019: Can not initialize character set utf-8

 

 

Solution:

The utf8 changed utf8 on it, do not take it for granted!

The following is the code segment at the original calling procedure, the original written utf8 utf8

 

 From:

https://blog.csdn.net/tao_627/article/details/47260699?utm_source=blogxgwz7

Guess you like

Origin www.cnblogs.com/yoyowin/p/12188019.html