pymysql.err.InternalError: (1366, "Incorrect string value: ...)

  緣由:因爲建表的時候沒有指定數據庫字符集, 保存中文的時候就會報錯:pymysql.err.InternalError: (1366, ...)mysql 解決方法:sql mysql>ALTER TABLE your_table CONVERT TO CHARACTER SET utf8 COLLATE utf8_general_ci;
相關文章
相關標籤/搜索