MySQL data sheet is the fastest migration, MySQL's storage engine is: MyISAM

Source: Internet
Author: User

This article link: http://blog.csdn.net/u010670689/article/details/41346689


Demand:

In the development of the product process, there is a project branch, the database needs to have data copy, but the table data is very large, with traditional insert INTO .... select * ... Very slow!!


Process:

1. Enter the MySQL file directory on Linux


The address of the MySQL data file can be found in the/ETC/MY.CNF

[Email protected] etc]# CAT/ETC/MY.CNF
[Mysqld]
Datadir=/var/lib/mysql
Socket=/var/lib/mysql/mysql.sock
User=mysql
# Disabling Symbolic-links is recommended to prevent assorted security risks
Symbolic-links=0


[Mysqld_safe]
Log-error=/var/log/mysqld.log
Pid-file=/var/run/mysqld/mysqld.pid


Default-character-set=utf8
[Client]
Password=123qwe


2. View the database directory



Database list:



Our goal is to copy data from test to Test1:


Test directory structure:



Table information:



Both the Test1 directory and the table are empty:



3. Copying files



4. Modify Permissions



5. Enquiry



Complete!!



MySQL data sheet is the fastest migration, MySQL's storage engine is: MyISAM

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.