MySQL importing database with source error

Source: Internet
Author: User
Tags phpmyadmin

Always use phpMyAdmin or mysqldum to export, using the source command to import the database.

However, after the new version of MySQL, the following error occurred in the import method:

Error:unknown command ' \ \ '. Query OK, 2022 rows affected (0.71 sec) records:2022  duplicates:0  warnings:0

Then is the command line report MySQL connection error, keep reconnect.

All two databases are in UTF8 format, and phpMyAdmin does not have coding problems, but finding online instructions, most of which are caused by coding problems.

Finally, the following command was successfully imported:

Mysql-uroot-p--default-character-set=utf8 tmp < d:/. sql

MySQL importing database with source error

Related Article

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.