1. Check the character set of MySQL show variables like '%char%'; 2. Modify the MySQL configuration file It's not the installation directory, it's the data directory. I opened it with sublime. After entering, add configuration in three places. First one: [client] default-character-set=utf8 Second one: [mysql] default-character-set=utf8 The third one: [mysqld] character-set-client-handshake = FALSE character-set-server = utf8 collation-server = utf8_unicode_ci init_connect='SET NAMES utf8' Above: save 3. Restart MySQL service This computer -> Manage -> Services and Applications -> Services -> MySQL Service -> Restart 4. Log in to MySQL Enter the command show variables like '%char%'; Done The above is the details of how to modify the MySQL character set. For more information about modifying the MySQL character set, please pay attention to other related articles on 123WORDPRESS.COM! You may also be interested in:
|
<<: How does Zabbix monitor and obtain network device data through ssh?
>>: JavaScript Array Detailed Summary
Introduction react-i18next is a powerful internat...
This article shares the specific code of Vue to i...
1. Related concepts 1.1 Jenkins Concepts: Jenkins...
Mysql left join is invalid and how to use it When...
Table of contents variable Data Types Extension P...
1. Check the database time zone show variables li...
Table of contents 1. Introduction 2. Several key ...
Floating ads are a very common form of advertisin...
This article describes the commonly used MySQL fu...
This article example shares the specific code of ...
History always repeats itself surprisingly well. ...
Recently, there is a particularly abnormal busine...
Here's a solution to the problem where margin...
Table of contents 1. Installation 2. Import 3. De...
1. Purpose: Make the code easier to maintain and ...