About MySQL coding

chnhbhndchngn 2022-02-13 08:18:15 阅读数:30

mysql coding

There are three codes

  1. mysql Service code for
  2. mysql Client code
  3. Terminal coding (windows yes gbk)

It is recommended to use all utf8

About mysql The coding of client and server can be through mysql Statement view

> show variables like '%charter%';

  You can permanently change the encoding by modifying the configuration file in the lowest path , But if it is windows Next , cmd in gbk Coded , There may be garbled code , as follows Can't insert

  Need to change to gbk

  Insert the success , The query result is also correct

  stay Navicat It is also correct to view in

copyright:author[chnhbhndchngn],Please bring the original link to reprint, thank you. https://en.javamana.com/2022/02/202202130818136681.html