In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-04 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: 237
*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.