Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Our system crashed and we're trying to recover our data. The disc is fine but the OS is gone, so I'm trying to get at the actual mysql databases document. Does anybody know where to look for them in a Debian linux server

share|improve this question

closed as off-topic by Jenny D, Iain, Dave M, Ward, Falcon Momot Feb 8 '14 at 11:43

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions must demonstrate a minimal understanding of the problem being solved. Try including attempted solutions, why they didn't work, and the expected results. See How can I ask better questions on Server Fault? for further guidance." – Jenny D, Iain, Dave M, Ward, Falcon Momot
If this question can be reworded to fit the rules in the help center, please edit the question.

They are wherever you configured mysql to put them. – Jenny D Feb 7 '14 at 7:23

Should be in /var/lib/mysql... By default! Note it is easy for an Admin to set the dB location else where, and if you can't figure that kind of information out, then you have a big problem with your procedures/ documentation you should address before any technical issue!

Btw, 30 secs of googling would have given you the answer...

share|improve this answer

By default, the database directory is /var/lib/mysql and set in /etc/mysql/my.cnf. Look for the line datadir = /var/lib/mysql to confirm.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.