About MySQL in the Chinese garbled data and issues being given

Insert a question about MySQL Chinese garbled or incorrect data

Solution one

  1. Mysql open my.ini file in the installation directory
  2. The file default-character-set=utf8value changeutf8

Solution two

  1. In the command lineshow variables like'%char%';

  2. The modification of the value as shown below:
    Database coding
    There are two methods 3. Review:
    a first Modification method
    or

    The second
    command line inputset names gbk;

Finish.

See detailed reference

Released two original articles · won praise 2 · views 59

Guess you like

Origin blog.csdn.net/lilinchao97/article/details/103976995