Debian – Where does MySQL store its databases on Debian

data-recoverydebianMySQL

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 database files.

Does anybody know where to look for them in a Debian Linux server?

Best Answer

MySQL stores DB files in /var/lib/mysql by default, but you can override this in the configuration file, typically called /etc/my.cnf, although Debian calls it /etc/mysql/my.cnf.

Related Question