Solution for unknowncommand during MySQL import _ MySQL

Source: Internet
Author: User
Tags mysql import
During MySQL import, the unknowncommand solution bitsCN.com wants to import a table on the remote MySQL server to the local database. Therefore, it is easy to use mysqldump to export the table. But it won't work during the import, and it always prompts the Unknown command '//'. At first, I thought this was a mysql bug. I could not import the exported items myself. later I thought that MySQL should not be so weak. I searched the internet and found it was a problem with the default character set. Remote Database server operating system is Linux, OS default character set is UTF-8, but I use Windows 7, the default character set is GBK, add-default-characgter-set = utf8 during import. The complete import and export statement is attached.

Mysqldump-udbuser-p database table> exp. SQL;

Mysql-udbuser-p-default-character-set = utf8 database <exp. SQL
BitsCN.com

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.