In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-21 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
The perfect solution to the Mysql 4.1language problem (turn) [@ more@] does not need to modify the my.ini. When setting up a database, it is not important to set the character set of the library and table, but it is best to set the GBK character set for fields of text type.
For existing databases, you can convert field codes in the following ways:
ALTER TABLE t MODIFY hoverfly BINARY (100)
ALTER TABLE t MODIFY hoverfly CHAR (100) CHARACTER SET gbk
Note that if you do not modify the program with this method, you will find that the query results are garbled, which can be corrected by adding default-character-set=gbk in the [mysqld] section of the my.ini. But in this way, you will find that the Chinese in the text fields that are not transcoded are garbled.
In fact, there is a simpler way, just execute SET character_set_results = NULL before making the query. And this is whether it is converted or unconverted fields will not appear garbled. The converted fields can be sorted in Chinese normally.
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.