Step 1: Use Notepad to open the "my.ini" file in the MySQL installation directory. # MySQL client library initialization. [client] port=3306 [mysql] default-character-set=utf8 Check if Step 2: Enter in the MySQL database cmd: This is what it looks like after successful setup. Step 3: set character_set_database=utf8; set character_set_server=utf8; set character_set_client=gbk; set character_set_connection=gbk; This is the configuration to insert Chinese characters. You must enter these commands in cmd to run mysql. Step 4: set character_set_results=gbk This is the configuration to display Chinese. Done Next, I will share a graphic operation method#Solve the problem that mysql cannot input Chinese characters Modify the mysql character set and modify the configuration file my.ini
We have already established the database, and now we also need to change the database character set in Navicat for MySQL. Right-click the database and select Database Properties, as shown in the figure. After entering, change the character set to utf8
Then in "Options", modify the character set of the table.
Enter the design table, click on a field, and find that the data type is still Latin1. OK, just change it one by one.
Summarize The above is the solution to the problem that MySQL on the window system cannot input or display Chinese. I hope it will be helpful to everyone. If you have any questions, please leave me a message and I will reply to you in time! You may also be interested in:
|
<<: Nginx merges request connections and speeds up website access examples
>>: Writing Snake Game with Native JS
Table of contents Preface Case: Imitation of JD.c...
In JavaScript, use the removeAttribute() method o...
This article shares the specific code for drawing...
Recommended reading: MySQL 8.0.19 supports accoun...
This article shares the specific process of js ob...
Table of contents 1. Synchronous AJAX 2. Asynchro...
React originated as an internal project at Facebo...
Preface In the springboot configuration file, the...
①. How to use the alias (CNAME) record: In the do...
This article example shares the specific code of ...
Preface Every time you use Docker to start a Hado...
Currently, many businesses are conducting promoti...
Note: This table is quoted from the W3School tuto...
It is already 2020. Hungry humans are no longer s...
Table of contents 1. How to update in batches Con...