Get the App
SLTechnology News&Howtos  ›  Database  › 

Solution to the problem of exporting data using source in mysql

Shulou Source: shulou.com Published: 2022-06-01 18:38:28 11月11日 Update

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.

Tags: Files data methods problems UTF-8 information servers codes services differences above below content commands that is articles more sections text results Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno macOS Docker OPPO Reno Shulou Technology Apple