Python报错:OperationalError:(MySQLdb._exceptions.OperationalError) (1366, "Incorrect string value:)
使用环境:
操作系统:win10,64bit
python:3.6.5
sql:MariaDB 10.1 (x64)
问题:
在使用python连接数据库时报错:OperationalError:(MySQLdb._exceptions.OperationalError) (1366, "Incorrect string value:)
问题出在数据库默认字符集上,应该用uft8n...
原创
2020-03-08 17:20:50 ·
1680 阅读 ·
0 评论