当前位置:网站首页>MySQL Chinese failure
MySQL Chinese failure
2022-07-27 03:26:00 【Caribbean waves】
MySQL Chinese failure problem
Hello everyone , This time I bring you my new column : database , The database is relatively not that difficult , As long as you practice hard 、 Memorize grammar , I believe that learning database well is not a problem , Bloggers will start from 0 analyse , Explain the knowledge points of database step by step , And will give many examples . most important of all , Bloggers will not use software , Use the most primitive way -> Command line to explain , The advantage of this explanation is to write sentence by sentence , It won't cause the problem that readers can't keep up with their ideas !
QQ:162196770
WeChat :PRIDE_Xu_
Gitee:https://gitee.com/jialebihaitao
The next blog portal :
Article column :
When we use MySQL At the command line , You will encounter the following problems :

This is because MySQL Incompatible with Chinese .
MySQL The default character set is Latin , To insert Chinese correctly , The character encoding method of data must be specified as UTF8 , Need modification my.ini The configuration file
What is the profile ?
For example, we play some games , The resolution can be adjusted in the settings Frame rate and so on , These settings that can be adjusted , It's called configuration . This way can make it very convenient for ordinary Wanjia to play .
But in programming circles , Many configuration items also need to be changed . Many software is used by programmers , So many software put special configuration information into a configuration file , Store in a specific format . Only professional people can understand , Programmers want to modify the configuration , You need to find the corresponding configuration file .
We can first judge our MySQL Do you support Chinese?
stay
MySQLEnter this statement on the command line of :show variables like 'character%';
Be careful : modify my.ini Be careful when you , Once you correct your mistakes, you may MySQL It won't work , So be sure to back up before modifying !!!
The solution is as follows :
Find... On the start menu
MySQL, Then select one of the files , Right click -> more -> Open file location
After entering the folder , Right click the highlighted shortcut -> attribute

Copy the contents of the target

“C:\Program Files\MySQL\MySQL Server 5.7\bin\mysql.exe” “–defaults-file=C:\ProgramData\MySQL\MySQL Server 5.7\my.ini” “-uroot” “-p” “–default-character-set=utf8”

Teach you a simple way , You can find it
MySQLConfiguration file forYou need to install a tool , It's called
Everything, This tool can query files very fast ~Let's share the download link
Everything 64 position _1.4.1.1009.exe

In fact, we can also use the file search provided by the file manager to find , It's just so slow
Then copy the path of the configuration file , Go to file manager to open

open
my.inifile ( Just a notepad )Be sure to back up before modifying ! ! !

Find this place , Enter at the indicated location
default-character-set=utf8
Be careful : You can't add #
Find this place , Enter
character-set-server=utf-8
Then we have to restart MySQL. Search service , And then find MySQL57, Right click -> Restart

So far, , We have finished changing , But you need to log in again
MySQL, At this time, the old database and tables are not affected , You must recreate the database and tables , To take effect
Look at the my.ini file
#It starts with notes , Never mind- [client] : So let's start here , It is a configuration item for the client
- [mysqld]: So let's start here , Client server
边栏推荐
- Worthington过氧化物酶活性的6种测定方法
- 字节一面:TCP 和 UDP 可以使用同一个端口吗?
- [flask] the server obtains the request header information of the client
- DTS搭载全新自研内核,突破两地三中心架构的关键技术|腾讯云数据库
- 食物链(DAY 79)
- docker 创建mysql 8.x容器,支持mac ,arm架构芯片
- mysql如何优化
- 安全员及环保员岗位职责
- Volatile keyword and its function
- The diagram of user login verification process is well written!
猜你喜欢

Spark: ranking statistics of regional advertising hits (small case)

若依框架代码生成详解

mysql底层数据结构

Details of impala implementation plan

Spark Learning Notes (VI) -- spark core core programming RDD action operator

代码审查金字塔

【树链剖分】模板题

Activiti5.22.0 extension supports domestic databases, taking gbase database as an example

Explain详解

太强了,一个注解搞定接口返回数据脱敏
随机推荐
Wechat applet generation Excel
Take you to know what Web3.0 is
若依框架代码生成详解
若依的环境的部署以及系统的运行
Acwing 2074. Countdown simulation
数据库使用安全策略
flask_restful中reqparse解析器继承
智能体重秤方案主控采用CSU18M91
opiodr aborting process unknown ospid (21745) as a result of ORA-609
Details of impala implementation plan
Practice of online problem feedback module (XV): realize the function of online updating feedback status
177. The nth highest salary (simple)
The diagram of user login verification process is well written!
477-82(236、61、47、74、240、93)
spark学习笔记(五)——sparkcore核心编程-RDD转换算子
Plato farm has a new way of playing, and the arbitrage eplato has secured super high returns
What are "full five unique" and "full two unique"? Any difference?
正方形数组的数目(DAY 81)
【1206. 设计跳表】
Worthington果胶酶的特性及测定方案

