今天使用navicat向MySQL中插入中文时,报错:

1366 - Incorrect string value:...

在我自己数据库设计之初,没有设计好字符编码格式的问题。

使用如下语句解决:

alter table tableName convert to charset utf8;

 

相关文章: