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
View Database show databases; Create a database c...
Page domain relationship: The main page a.html bel...
This article introduces the method of using CSS3 ...
I will not introduce what CUDA is, but will direc...
<br />For some time, I found that many peopl...
Preface binlog is a binary log file, which record...
Recently, I encountered a problem in the process ...
Table of contents Preface 1. Paste Events and Cli...
Application Scenario Taking the background manage...
Table of contents What is FormData? A practical e...
The goal of this document is to explain the Json ...
1. Download Python 3 wget https://www.python.org/...
Table of contents 1. Overview 1.1 Usage of queryS...
The players we see on the web pages are nothing m...
This article example shares the specific code of ...