A permanent solution to MYSQL's inability to recognize Chinese

A permanent solution to MYSQL's inability to recognize Chinese

In most cases, MySQL does not support Chinese when it is just installed. This is due to encoding issues. We can permanently enable MySQL to recognize Chinese by modifying the configuration file.

First we need to display the hidden files in the folder (as shown in the picture)↓

insert image description here

In MySQL 5.5 and older versions, most configuration files are in the installation directory. The my.ini file in the figure below is what we need.

insert image description here

In MySQL 5.7 and above, the configuration file is located in the following position

insert image description here

We just need to open my.ini and change the default encoding of the code segment below to utf8 and save it.

insert image description here

insert image description here

If it prompts that you do not have permission to modify, you can run the editor as an administrator, then use the editor to open my.ini and save it.

This is the end of this article about the permanent solution to MYSQL not being able to recognize Chinese. For more related content about MYSQL not being able to recognize Chinese, please search for previous articles on 123WORDPRESS.COM or continue to browse the related articles below. I hope everyone will support 123WORDPRESS.COM in the future!

You may also be interested in:
  • Solution to the problem that Chinese characters are converted into full question marks when inserted into Mysql???
  • MySQL configuration file my.cnf parameter optimization and Chinese detailed explanation
  • How to solve the Chinese garbled problem in Mysql (perfect solution to the garbled problem)
  • Chinese UTF8 garbled characters in MySQL
  • Several solutions to the garbled Chinese encoding of uft-8 in php and mysql
  • Implementation of converting Chinese characters to Pinyin in Mysql (converting each Chinese character to full Pinyin)
  • How to make MySQL support Chinese sorting
  • How to solve the problem of Chinese garbled characters when inserting table data into MySQL
  • Differences among MySQL character sets GBK, GB2312, and UTF8 to solve MYSQL Chinese garbled characters
  • Solution to MySQL Chinese garbled characters problem

<<:  Semantics: Is Html/Xhtml really standards-compliant?

>>:  Element UI table realizes drop-down filtering function

Recommend

Comprehensive inventory of important log files in MySQL

Table of contents Introduction Log classification...

Centos 7 64-bit desktop version installation graphic tutorial

If you think the system is slow and want to chang...

W3C Tutorial (2): W3C Programs

The W3C standardization process is divided into 7...

CentOS uses expect to remotely execute scripts and commands in batches

Sometimes we may need to operate servers in batch...

Docker data volume common operation code examples

If the developer uses Dockerfile to build the ima...

Share the responsive frameworks commonly used by web design masters (summary)

This article introduces and shares the responsive...

Analyzing Linux high-performance network IO and Reactor model

Table of contents 1. Introduction to basic concep...

Docker installation and configuration steps for MySQL

Table of contents Preface environment Install Cre...

How to write beautiful HTML code

What Beautiful HTML Code Looks Like How to write ...

CSS+HTML to realize the top navigation bar function

Implementation of navigation bar, fixed top navig...