1

MySQL restore bd from directory copy. Hello, I recently lost the external storage where my MySQL data directory was located, but I have copied the entire data directory in another location, the problem is that I copied it without stopping mysql before, I would like to know how to get mysql from the directory data where information is saved before the crash

asked Sep 21, 2017 at 0:23

1 Answer 1

0

Sorry, you are probably SOL.

Case 1: Copying the disk while MySQL is actively writing data. Very likely to be in an inconsistent state -- some things written to disk and copied; some not.

Case 2: MySQL up during the copy, but not actively writing (UPDATE, INSERT, etc). This might work since it is identical to a power failure.

answered Oct 18, 2017 at 1:43

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.