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
Since the introduction of the contentEditable attr...
Table of contents Preface Creating a component li...
All content in this blog is licensed under Creati...
How to solve the problem of being unable to acces...
Table of contents Overview Precautions 1. Usage 2...
The specific code is as follows: The html code is...
Table of contents 1. Index Type 1. B+ Tree 2. Wha...
Static files Nginx is known for its high performa...
Table of contents Preface Method 1: High contrast...
The MySQL query result row field splicing can be ...
BFC Concept: The block formatting context is an i...
Table of contents 1. Introduction 2. Principle II...
When an employer asks you whether an index will b...
This article uses an example to illustrate the ex...
This article shares the specific code for impleme...