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

Solution to the problem of exporting data using source in mysql

2025-02-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

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

The following brings you about the solution to the problem of using source to export data in mysql. I believe you must have read a similar article. What's the difference between what we bring to everyone? Let's take a look at the body. I'm sure you'll get something after reading the solution to the problem of using source to export data in mysql.

ERROR: Unknown command'\ ify.

ERROR: ASCII'\ 0' appeared in the statement, but this is not allowed unless option-- binary-mode is enabled and mysql is run in non-interactive mode. Set-- binary-mode to 1 if ASCII'\ 0' is expected. Query:?.

Baidu hurriedly learned that the sql file exported in powershell will make mistakes. Transfer the exported file to the linux CVM, and use the file command to check the result:

Little-endian UTF-16 Unicode text, with very long lines, with CRLF line terminators

Re-export the sql file information in the CVM as follows:

UTF-8 Unicode text, with very long lines

The information of the sql file exported with cmd is:

UTF-8 Unicode text, with very long lines, with CRLF line terminators

All right, powershell export file is UTF-16 encoding, cmd and linux export are UTF-8 encoding, the difference is not very clear until I check it out and then continue to write.

Last! The sql file exported by cmd source is imported into ok!

Do you think it's what you want to solve the problem above about using source to export data in mysql? If you want to know more about it, you can continue to follow our industry information section.

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