The fastest migration method of MySQL database across operating system _mysql
Source: Internet
Author: User
The database file is large, about 70G,
If you have a normal migration, you need to export the data in the original database and then import the data in the new database
After careful consideration, is MySQL's database file stored in the same format as different operating systems?
The test process is as follows:
64-bit version of MySQL installed on 64-bit sun machines
Stop MySQL Service
Copy the 32-bit MySQL data files on Windows (all, except system and logs) to 64-bit machines,
Modify the appropriate file and directory permissions,
File is chmod 660
Catalog is chmod 700
Then restart the MySQL service and run normally.
Summarize:
Don't think this looks very simple, many people will mistakenly think that the different operating systems, their storage is not universal, and this example shows that the same database data storage structure is no difference, can be used directly.
Attached to the middle of a small exception, that is the database data directory, must have executable permissions, that is, 7 of the permissions, 6 of the can not.
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