In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-09-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)05/31 Report--
This article mainly explains "how to solve the problem of MySQL Invalid gbk character string 1300 error report". The content of the article is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn "how to solve the problem of MySQL Invalid gbk character string 1300 error report".
A warning appears when you add a column to the table today.
If you add a statement, you can see that it contains Chinese
ALTER TABLE `lidan_ followers `ADD `TINYINT NOT NULL DEFAULT'- 1' COMMENT'- 1: not evaluated 0: not serious 1: serious `AFTER `mylevel`
The statement was garbled when it was pasted into the command window. Although it was successfully added, it was reported to warning.
(root@localhost) [oms3] > ALTER TABLE `lidan_ followers `ADD ``TINYINT NOT NULL DEFAULT'- 1' COMMENT'- 1: 0: 1 ALTER TABLE 'AFTER `mylevel`
Query OK, 0 rows affected, 1 warning (4.79 sec)
Records: 0 Duplicates: 0 Warnings: 1
View warning,code 1300
(root@localhost) [oms3] > show warnings
+-- +
| | Level | Code | Message | |
+-- +
| | Warning | 1300 | Invalid gbk character string:'- 1:\ xE6\ xAA\ xE8...' | |
+-- +
1 row in set (0.00 sec)
Character set problem
[root@oracle11gtest ~] # perror 1300
MySQL error code 1300 (ER_INVALID_CHARACTER_STRING): Invalid% s character string:'% .64s'
The solution is
Modify the vim / etc/sysconfig/i18n file, the last two lines are newly added, the above is just shielded, why not use it, because there are no double quotes
# LANG=en_US.UTF-8
# SYSFONT=latarcyrheb-sun16
LANG= "en_US.UTF-8"
SYSFONT= "latarcyrheb-sun16"
Execute source / etc/sysconfig/i18n after saving the file
Thank you for your reading, the above is the content of "how to solve the problem of MySQL Invalid gbk character string 1300 error report". After the study of this article, I believe you have a deeper understanding of how to solve the problem of MySQL Invalid gbk character string 1300 error report, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!
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.
The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.