mysql unknown command ' \ ' problem solving method

Source: Internet
Author: User

Unknown command ' "'

So the ' replace all ' result or not, the import is not.

However, it is possible to copy the database files directly to the past. Copy the past after the dump came out. The result is still the same effect

Unknown command ' "'

Extremely depressed.

After many are exported import found that the original default installed MySQL is UTF8 encoding, and I installed the MySQL GBK database. As a result, the backup files may be incorrectly formatted when they are restored.

Later, in dump, specify the character set mysqldump add a parameter:-DEFAULT-CHARACTER-SET=GBK, import the backup file again, everything goes well.

Mysqldump-u ROOT-P–OPT–ALLOW-KEYWORDS–DEFAULT-CHARACTER-SET=GBK Databases >/path/xxx.sql

Non-default character set, specifying appropriate character set in import Export note

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.