RDS Database file backup restore __ Database

Source: Internet
Author: User
Tags aliyun
Objective

A few days ago to do data updates, the hand shook a bit, the data deleted. Fortunately Aliyun has 7 days of backup, immediately downloaded the backup file, want to back up. Refer to Official Backup recovery workaround: https://help.aliyun.com/knowledge_detail/41817.html?spm=5176.11065259.1996646101. Searchclickresult.569d1aa3t4iuzc. Feel very cumbersome. There is no simpler way to recover data. The following methods are currently used for simplicity and ease of use. Backup Recovery

After you extract the backup files from the RDS download, you will get a file of. ibd and. frm. such as USER.FRM,USER.IBD. If you want to restore the user table, do the following: Build a table that is exactly the same as the user's field. To view the local data directory (Windows is typically under the data path of your MySQL installation directory), there will be USER.FRM,USER.IBD execute ALTER TABLE user discard tablespace. Deletes the local user.ibd file to perform the ALTER TABLE user import tablespace by copying the backup USER.IBD to local user. Lesson

Don't shake your hands.

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.