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 cannot show how to solve the problem in Chinese.

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

Share

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

Editor to share with you how mysql can not show how to solve the problem in Chinese. I hope you will learn a lot after reading this article. Let's discuss it together.

Limited to versions 5.6 and 8.0 and 5.0

1. Find the installation location of MySQL, for example, I installed it on disk C.

C:\ ProgramData\ MySQL\ MySQL Server 5.6

There is a my.ini file inside, right-click to use notepad to open.

2. Open my.ini in notepad and find this sentence (there is a shortcut to find it in the editor)-default-character-set=utf8-

Change utf8 to gb2312.

3. Restart MySQL and end

Change the way of Chinese at once

1. Open MySQL

2. Enter set character_set_database/connection/server/client = 'gb2312'

3. Status view

After reading this article, I believe you have a certain understanding of how to solve the problem that mysql can not display Chinese. If you want to know more about it, welcome to follow the industry information channel. Thank you for your reading!

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