MySQL import and export, and error logging

Source: Internet
Author: User
Tags mysql import

Go to the MySQL bin directory, if the MySQL bin adds environment variables.

Export, without specifying the encoding, defaults to: UTF8MB4. :

Mysql-u root-h 127.0.0.1-p 3307-p--default-character-set=utf8mb4 Dxoa < G:/bak.sql.

Import, without specifying the encoding, the default is Utf-8:

mysql-u root-h 127.0.0.1-p 3307- P--default-character-set=utf8mb4 Dxoa < G:/bak.sql

Issue record:

1, if the export import of the MySQL service did not start, then the error: Can ' t connect to localhost (10043) similar to this, StackOverflow on the said may also be port unspecified, [-p].

2, import times: ERROR at line 4635:unknown command ' \ n '. is because the export is inconsistent with the imported encoding.

MySQL import and export, and error logging

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.