MySQL Import and export

Source: Internet
Author: User
Tags types of tables mysql import

General table, directly export SQL, and then import, but some of the table's fields may be longtext type, including some semicolons, quotation marks and other characters, when imported error ...

With Navicat for MySQL try to export db,dbf file, and then import also unsuccessful, DFB import garbled, characters are UTF8, do not know why still garbled;

Do not try to use console command, do not know how;

In practice, MySQL data import and export can be implemented conveniently in the following ways:

1. Finally import successfully with Dbeaver, Dbeaver import, do not generate intermediate files, directly let you choose "source" table, dbeaver to establish a connection between two databases, the import is successful, relatively simple and convenient.

2. With Navicat for MySQL, select "Tools"-data transfer, select source and target, can quickly implement import and export, fast, some table fields contain some semicolons, quotation marks and other characters, also successfully imported. The volume of data is sometimes very slow.

3. Copy the MySQL data file, locate the MySQL data file, and copy the list of frm files, myd files, and myi files in the past. However, for INNODB types of tables This method does not work, InnoDB type of table data is stored in the MySQL data file directory in the Ibdata1 file ...

4. With Navicat for MySQL, perform a backup operation on the database, after opening, each database has a backup button, ' New backup ', the backup file will be stored in a similar C:\Users\venus\Documents\Navicat\MySQL\ Servers\192.168.10.203\xxx such a directory, the file name is similar to "150105134635.PSC", in the target database with this file to restore the backup. This method is safe and reliable, stable and fast through multiple library experiments.

MySQL Import and export

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.