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

Solution to the timeout problem when installing docker-compose with PIP

1: Installation command pip install docker-compos...

Draw a heart with CSS3

Achieve resultsRequirements/Functionality: How to...

VUE Getting Started Learning Event Handling

Table of contents 1. Function Binding 2. With par...

How to build and deploy Node project with Docker

Table of contents What is Docker Client-side Dock...

A brief discussion on JS regular RegExp object

Table of contents 1. RegExp object 2. Grammar 2.1...

React Principles Explained

Table of contents 1. setState() Description 1.1 U...

Error mysql Table 'performance_schema...Solution

The test environment is set up with a mariadb 5.7...

An example of implementing a simple infinite loop scrolling animation in Vue

This article mainly introduces an example of Vue ...

Introduction to using the MySQL mysqladmin client

Table of contents 1. Check the status of the serv...

mysql delete multi-table connection deletion function

Deleting a single table: DELETE FROM tableName WH...

Detailed explanation of how to use Teleport, a built-in component of Vue3

Table of contents 1. Teleport usage 2. Complete t...

Docker-compose creates a bridge, adds a subnet, and deletes a network card

1. Create a docker network card [root@i ~]# brctl...