In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-30 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)05/31 Report--
This article introduces the relevant knowledge of "the unknown command solution appears when a table on the MySQL server is imported into the local database". In the operation of the actual case, many people will encounter such a dilemma, so let the editor lead you to learn how to deal with these situations. I hope you can read it carefully and be able to achieve something!
Today, you want to import a table from a remote MySQL server into a local database, so use mysqldump to export this table first, which is easy and easy. But not when importing, always prompting Unknown command'\\'. At first, I thought it was mysql's bug, and I couldn't import what I exported. Later, I thought that MySQL shouldn't be so weak, so I searched the Internet and found that it was the default character set. The remote database server operating system is OS, and the default character set of OS is UTF-8, but I use Windows 7 locally, and the default character set is GBK. Just add-default-characgter-set=utf8 when importing. Finally, the complete import and export statement is attached.
Dump-udbuser-p database table > exp.sql
Mysql-udbuser-p-default-character-set=utf8 database < exp.sql
This is the content of "unknown command solution appears when a table on the MySQL server is imported into the local database". Thank you for reading. If you want to know more about the industry, you can follow the website, the editor will output more high-quality practical articles for you!
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: 228
*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.