"Transfer & Reference" MySQL data recovery using FRM and IDB files

Source: Internet
Author: User
Tags chmod

MySQL uses FRM and IDB files for data recovery sources MySQL Status: version:5.6.*Storage Engine: InnoDB storage engine to restore the database: Skill key to restore the table: Slot_value existing files: Back up all physical files (including ibdata1 and database skill the entire directory) tips: It 's best to find a development machine, Set up an extra MySQL database to avoid affecting other people because of the shared MySQL database. 1. Build MySQL, if this step is in doubt, go out to the left to have Yum build various versions of the database operation steps: http://www.cnblogs.com/zhzhang/p/7765040.html2back up the MySQL data you just built (this step can be ignored because of the newly built database)3. The previously backed upphysical files Ibdata1 files and skill foldersPut it in the MySQL data directory that you just built (the data directory location in/etc/my.conf datadir=/var/lib/MySQL)4change the entire directory of IBDATA1 and skill to the owner of MySQL5. The Skill directory chmod760Skill6. All files inside the skill directorychmod 660*7. Service mysqld Restart Restart database8log in to this database, locate the skill database, locate the Slot_value table, and restore the data. 9. You are here for reference from: http://blog.csdn.net/hongchangfirst/article/details/51323965

Note:

Copy files not only copy the skill folder and the data, but also copy the Ibdata1 file

Note the owner and permissions of the files and directories;

Do not do the matter, but also ask the heroes to guide.

"Transfer & Reference" MySQL data recovery using FRM and IDB files

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.