`

解决MySQL里的ERROR 1366 Incorrect string value

    博客分类:
  • sql
阅读更多

1.这个就是编码的问题,可能在装MySql 的时候选择的是默认的编码,或者你选择的UTF8,所以在插入数据的时候出现编码的错误,解决方法

是找到Mysql的安装目录下的my.ini文件,把里面的default-character-set=GBK 但是需要注意,这里设成GBK之后在页面里面也需要设成GBK,

否则会出现编码不一致,会出现乱码。 2.利用前端工具修改 每个字段的格式都是gbk,因为你要利用cmd工具来insert数据。

分享到:
评论

相关推荐

    MySql 错误Incorrect string value for column

    使用javabean出现以下错误, 66480555 [http-80-4] WARN org.hibernate.util....Incorrect string value: ‘\xE7\x89\xA9\xE8\xB5\x84…’ for column ‘search’ at row 1 org.hibernate.exception.Gener

    mysql输入中文出现ERROR 1366的解决方法

    ERROR 1366: 1366: Incorrect string value: ‘\xE6\xB0\xB4\xE7\x94\xB5…’ for column ‘introduce’ at row 1 这是因为mysql编码的问题 打开mysql mysql -u root -p 输入密码后,输入下面这一行代码来显示...

    mysql无法向表中插入中文:修改编码格式

    首次创建好table后,向表中插入汉字内容时会提示:ERROR 1366 (HY000): Incorrect string value: ‘\xE6\x8C\x82\xE6\x9C\xBA’ for column ‘name’ at row 1,表示’name’这列插入的汉字无法被编码。 原因: ...

    centOS7下mysql插入中文字符报错问题解决方法

    ERROR 1366 (HY000): Incorrect string value: ‘\xE4\xBD\x99\xE9\x93\xB6…’ 应该是数据库编码问题,所以应该改数据库编码 这里有2中方法。一种是直接敲代码设置,一种是在CentOS7中修改文件/usr/my.cnf, 第一种...

    mysql存储emoji表情报错的处理方法【更改编码为utf8mb4】

    本文实例分析了mysql存储emoji表情报错的处理方法。...java.sql.SQLException: Incorrect string value: ‘\xF0\x9F\x92\x94’ for column ‘name’ at row 1 at com.mysql.jdbc.SQLError.createSQLException(SQL

    mysql 不能插入中文问题

    当向mysql5.5插入中文时,会出现类似错误 ERROR 1366 (HY000): Incorrect string value: 'xD6xD0xCExC4' for column

    Delphi7.1 Update

    * TClientDataSet.ChangeCount will return an incorrect value when editing the value of a TStringField or a TWideStringField and then reverting it to the original value (Quality Central 2717 & 4508)....

    unidac_7_1_4_pro DELPHI 10 Tokyo

    Bug with an incorrect error message when using the Connect dialog component on mobile platforms is fixed Bug with AV failure when using calculated fields in TClientDataset is fixed Bug with a key ...

    Unidac Pro 7.1.4 XE8

    Bug with an incorrect error message when using the Connect dialog component on mobile platforms is fixed Bug with AV failure when using calculated fields in TClientDataset is fixed Bug with a key ...

    unidac_7_1_4_pro DELPHI 10 Berlin

    Bug with an incorrect error message when using the Connect dialog component on mobile platforms is fixed Bug with AV failure when using calculated fields in TClientDataset is fixed Bug with a key ...

    UniDAC 7.1.4

    Bug with an incorrect error message when using the Connect dialog component on mobile platforms is fixed Bug with AV failure when using calculated fields in TClientDataset is fixed Bug with a key ...

Global site tag (gtag.js) - Google Analytics