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)

原文地址:https://www.cnblogs.com/fuzzier/p/9304237.html