Solved

MySQL Datafiles On CentOS 7

Posted on 2016-10-03
5
30 Views
Last Modified: 2016-11-10
Hello guys,
For data restore reasons i wanna know exact data files location and there filename extention.

Which files are then sufficient to restore a mysql database on onother Linux Machine?

Please Help
0
Comment
Question by:mos1234
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
5 Comments
 
LVL 62

Expert Comment

by:gheist
ID: 41828485
/var/lib/mysql/*
There are multiple files in there.
File backup is only valid if mysqld is completely stopped.
Normally you would want to pipe mysqldump output to backup system pipe.
0
 

Author Comment

by:mos1234
ID: 41834334
does it mean that if MySQL is running and the hardware crashes theres no chance for recovery from files retrieved someway from the storage?.....
0
 
LVL 62

Assisted Solution

by:gheist
gheist earned 250 total points (awarded by participants)
ID: 41834482
You can make transaction-accurate replica and make backups with or without shutdown from that.
Bonus - it can be used as read-only database too.

Why - you make mysqldump backups. Image backups will not work with any open database.
0
 
LVL 25

Accepted Solution

by:
Tomas Helgi Johannsson earned 250 total points (awarded by participants)
ID: 41852175
Hi!

All data that has been commit-ed to disk would be recoverable if the files are accessible and not corrupted after you reboot and/or mount the disk where the database is located.
You would need to recover all /var/lib/mysql/ directory to a new location and start mysql on that location. If you get a successfull startup then you could do mysqldump (backup) of the data to be restored on a "clean" and fully functional server.
What I recommend is that you have a master-slave / replication setup for disaster recovery as well as backups to minimize recovery time on your database especially on mission critical databases.

Regards,
     Tomas Helgi
0
 
LVL 62

Expert Comment

by:gheist
ID: 41881884
Thats life
0

Featured Post

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
In this series, we will discuss common questions received as a database Solutions Engineer at Percona. In this role, we speak with a wide array of MySQL and MongoDB users responsible for both extremely large and complex environments to smaller singl…
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…

626 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question