Backing Up MySql Database.

Ask questions about dedicated servers here and we and other users will do our best to answer them. Please also refer to the self-help section for tutorials and answers to the most commonly asked questions.
Post Reply
Faqahat
New to forums
New to forums
Posts: 1
https://www.youtube.com/channel/UC40BgXanDqOYoVCYFDSTfHA
Joined: Wed Dec 16, 2015 7:33 am

Backing Up MySql Database.

Post by Faqahat »

So, Today After i updated Ubuntu... It was not booting,
So i followed this recovery process as adviced by support
viewtopic.php?f=46&t=10584
I successfully managed to make a backup of all the files. But i want to make a backup of the MySql Databases As i can not use mysqldumb or a webserver , what are the other process to make a backup of the database?
User avatar
Edge100x
Founder
Founder
Posts: 13129
Joined: Thu Apr 18, 2002 11:04 pm
Location: Seattle
Contact:

Re: Backing Up MySql Database.

Post by Edge100x »

I'd recommend backing up the entire system, such as by using the "rsync" tool to copy it elsewhere (to an SSD partition or a different VDS). You'll then be able to restore any files later and not have to worry about whether you missed any.

If you're reinstalling the same version of MySQL, you should be able to bring over the old MySQL databases by saving its data folders and then wholesale replacing the default ones on the newly-installed version (while the MySQL server is stopped). By default, these should be in /var/lib/mysql. Also note that if you are using InnoDB tables, you may need to perform additional recovery steps (this will become clear when you start the server, if it refuses to start). InnoDB is not very good when it comes to handling crashes.
Post Reply