MySQL插入中文报错.1366问题解决办法

转载请附原文链接:http://blog.fandong.me/2017/12/01/Vapor-MySQL.1366/

MySQL Error .1366

[MySQL Error: Incorrect string value: '\xE5\x88\x9 A\xE5\x88\x9 A.. ’for column 'nickName' at row 1]  [Identifier: MySQL.MySQLError.1366  (truncatedWrongValueForField)]  [Documentation Links: https://dev.mysql.com/doc/refman/5.7/en/error-messages-client.html,
https://dev.mysql.com/doc/refman/5.7/en/error-messages-server.html]

MySQL Error .1366解决办法

alter table app_userInfo convert to character set utf8
其中app_userinfo是报错的表名

你可能感兴趣的:(MySQL插入中文报错.1366问题解决办法)