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

The solution of Chinese display garbled code in mysql command line

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

Share

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

Editor to share with you the mysql command line Chinese display garbled solution, I believe that most people do not know much, so share this article for your reference, I hope you will learn a lot after reading this article, let's go to know it!

Mysql command line Chinese display garbled solutions: 1, the reason for garbled is to log in using the lastin code, so you need to log out again using the code to log in explicitly; 2, re-query the Chinese table; 3, the login code must be the same as the code used when installing the database.

Mysql command line Chinese display garbled solution:

1. When we directly use mysql-u root-proot to log in to the command line interface.

2. Garbled codes will occur when there is Chinese in the table.

3. The reason for this garbled code is that the lastin code is used when logging in, so you need to re-exit and use the code to log in clearly.

4. Log in again, so that the problem of garbled code in Chinese query table can be solved.

5. Re-query the Chinese table, we can see that there is no problem of Chinese garbled.

6. It is important to note that the code we log in must be the same as the code we used to install the database, so as to solve the garbled problem. My database code is gbk, so I also use gbk when I log in, which solves the problem of Chinese garbled in the command line interface.

The above is the mysql command line Chinese display garbled solution all the content, thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, 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