MySQL - Incorrect string value: for column 'name' at row 1解决方案

MySQL - Incorrect string value: for column 'name' at row 1解决方案

本文环境是在windows环境下,linux环境请参看其他文献。

1. 确认编程所用的字符集为uf8
   <%@ page contentType="text/html; charset=UTF-8"%>

2. 确认MySQL所用的字符集为uf8
   修改mysql目录下的my.ini文件
   [mysql]
   default-character-set=utf8
   [mysqld]
   default-character-set=utf8

3. 运行SQLFRONT,右键点击需操作的数据库,属性,把字符集改为utf8

完成。

你可能感兴趣的:(MySQL - Incorrect string value: for column 'name' at row 1解决方案)