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

What is the solution to mysql garbled?

2025-03-01 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/01 Report--

In this issue, the editor will bring you what is the solution to mysql garbled. The article is rich in content and analyzes and narrates it from a professional point of view. I hope you can get something after reading this article.

View the encoding settings in CMD:

Show variables like "char%"

1. Find D:\ xampp\ mysql\ bin\ my.ini under the installation directory of xampp on your computer, and open:

2. Find the tag [mysqld] and tag [mysql]

3. Add coding configuration information under these two tags: character-set-server=utf8

After modification, it is as follows:

Ini code

[mysqld]

Port= 3306

Character-set-server=utf8

Ini code

[mysql]

No-auto-rehash

Character-set-server=utf8

4. Restart the mysql database after the modification is completed.

5. If the current database is created by previous coding, delete the old database and create a new database, the newly built database can support Chinese. If the current database is a database with other utf-8 codes, it does not need to be deleted and can be operated directly.

The above is the solution to mysql garbled shared by the editor. If you happen to have similar doubts, you might as well refer to the above analysis to understand. If you want to know more about it, you are 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

Internet Technology

Wechat

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

12
Report