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.
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.