Are MySQL databases always stored in /var
on CentOS?
Specifically – If a new CentOS/cPanel server that needs to support MySQL, doesn't have that partition, but only has these, does that mean MySQL data is somehow being stored in a temporary dump somewhere?
/dev/sda3 /
tmpfs /dev/shm
/dev/sda1 /boot
/usr/tmpDSK /tmp
Best Answer
In your case
/var
is stored on/dev/sda3
as a subdirectory of/
.The default
datadir
for MySQL is/var/lib/mysql
and as long as you do not change the configuration, the database files are stored in this directory.