title: Where are the MySQL databases stored (cPanel/WHM)?
body: <p>I have cPanel &amp; WHM installed on my server.</p>
  
  <p>Is it safe to backup this directory (if I only care about backing up the MySQL databases):
  "/var/lib/mysql/"</p>
  
  <p>I don't care about the other MySQL databases that cPanel provide by default. I only care about the MySQL databases that other cPanel users have created and currently own.</p>
  
  <p>I know I could just back it up with other ways, but let's say due to a hard disk drive failure, I cannot access cPanel and WHM.</p>
  
  <p>The only access to the server I have is via SSH (and SFTP).</p>
  
  <p>Okay, so would it be my best interest to just download everything in "/var/lib/mysql/"?</p>
  
  <p>If not, what other files would I need to back up? Let me guess, just the "/home/" directory?</p>
  
  <p>I hope my description of my issue was made clear and was descriptive.</p>
  
  <p>Basically, I need to transfer the MySQL databases from one HDD to another, but the HDD with the MySQL databases has lots of errors, is corrupted (I cannot access cPanel/WHM) and my server provider tells me my HDD has failed.</p>
  
  <p>In advance, I would like to thank you very much for your help.
  Even if you did not help, thank you very much for taking your time reading this. It is much appreciated.</p>