简体   繁体   中英

Backup dead MySQL server

My computer went almost totally down and I now need to get the data out of it, before I reinstall it. One of the data I need to backup are those on the server. However, I can't run it, so I just need to know, which files should I copy on external drive.

I have instaled MySQL with the bundle. In the main folder I can find mysql folder and within it, these folders:

..
backup
bin
data
include
scripts
share
sql-bench

Which of them contains the actual database data? I'm quite short on space so I need to only backup the most necessary.

Although it should go without saying that backups are something you make before your computer dies, mistakes happen.

What you should do is image your drive, copy it to something else, in preparation for your reinstall. I'd recommend copying everything as authentically as you can, even if that takes a while. That feeling you get when you realize you forgot to salvage something important that is now gone forever is not good.

MySQL generally stores data in the data directory. It may take some work to get your MySQL back into the same configuration as before, so be sure to grab the appropriate my.cnf file.

It can be really difficult to extract data from a bunch of MySQL data files without the MySQL process actually running. This is why tools like mysqldump exist. If you can get it running, even limping along, that'll be good enough to snapshot it.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM