Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Mysql then modifies the character set of the field

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)05/31 Report--

In this article, the editor introduces in detail "mysql and then modify the character set of the field", the content is detailed, the steps are clear, and the details are handled properly. I hope that this "mysql then modify the character set of the field" article can help you solve your doubts.

Method: 1, open the "my.ini" file, add "default-character-set=utf8" under client; 2, add "default-character-set=utf8" under mysql; 3, modify the contents of mysqld and restart.

The operating environment of this tutorial: windows10 system, mysql8.0.22 version, Dell G3 computer.

How does mysql modify the character set of a field

Modify MySQL configuration file

Find the my.ini file

After going in, add the configuration in three places.

The first one:

[client] default-character-set=utf8

Second:

[mysql] default-character-set=utf8

The third:

[mysqld] character-set-client-handshake = FALSE character-set-server = utf8 collation-server = utf8_unicode_ci init_connect='SET NAMES utf8'

Restart the MySQL service

This computer-- > Administration-- > Services and applications-- > Services-- > mysql Services-- > restart

Enter a command

Show variables like'% char%'

You can view the mysql character set

After reading this, the article "mysql and then modify the character set of the field" has been introduced. If you want to master the knowledge points of this article, you still need to practice and use it yourself. If you want to know more about related articles, welcome to follow the industry information channel.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Database

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report