python与mysql数据库连接中常见错误

Posted fuzzier

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了python与mysql数据库连接中常见错误相关的知识,希望对你有一定的参考价值。

1 1366, "Incorrect string value: ‘\xF0\x9F\x98\x81‘

solve: You need utf8mb4, not utf8, when connecting to MySQL and in the columns involved --- Rick James (stackoverflow)

以上是关于python与mysql数据库连接中常见错误的主要内容,如果未能解决你的问题,请参考以下文章