“Can't initialize character set utf8mb4” with Windows mysql-python

后端 未结 2 1179
野的像风
野的像风 2021-01-12 02:46

I\'m getting an error try to connect to a remote mysql database from a Windows 7 client via python 2.7 + MySQLdb 1.2.5 + sqlalchemy

2条回答
  •  孤城傲影
    2021-01-12 03:14

    I've gone around in circles trying to get this to work on Windows.

    The only thing that seems to work for me is to execute this once the connection is established:

    set names utf8mb4;
    

提交回复
热议问题