Home > database >  Using Chinese sqlyong mysql insert operation prompted a 1366 error
Using Chinese sqlyong mysql insert operation prompted a 1366 error

Time:10-03

I download zip mysql, the configuration file is my own configuration,
But using sqlyong mysql insert operation in Chinese things are always tip 1366 error:

CodePudding user response:

Insert before perform set names utf8;

CodePudding user response:

1. The table structure post
2. Show variables like 'char %' what is the result?

CodePudding user response:

Need to insert this sentence, support Chinese
 mysql_query (& amp; M_sqlCon, "SET NAMES 'GB2312");//set up the database character format, solving the problem of Chinese garbled 
  • Related