How to recover MySQL data after loading the system

Source: Internet
Author: User
Tags file copy

There are times when Windows servers need to be re-installed, and many of the software needs to be reinstalled. What to do without backing up MySQL data!

  1. 1

    To stop the MySQL service:

    Stop and start MySQL under Windows through the ' services ' item of the Admin tool (it is best to build a database in MySQL with the same name and then stop the service);

  2. 2

    File copy:

    The ' MySQL ' folder within the Data folder, the ' Database name ' folder (which is the table structure with the same name as the database), ibdata1 (metadata), three copies to the newly installed MySQL Data folder;

  3. 3

    Start the server:

    Delete the two log files below the Data folder (IB_LOGFILE0, Ib_logfile1 binary logs are not important), restart the MySQL server.

How to recover MySQL data after loading the system

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: 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.