[mythtv-users] Moving my MythDB

R. G. Newbury newbury at mandamus.org
Fri May 13 03:48:55 UTC 2022


> Not sure what is wrong with /var/lib/mysql though... :-)

/var/lib/mysql may be safe on most distros, but with Fedora, the /var 
tree or partition gets wiped during a distro install *even if you are 
using custom partitioning and do not select for that to happen.*

Been there, had it happen.

So all of my mysql databases live on another partition (/misc/mysql) and 
/var/lib/mysql is a symlink to there.

With /home and /misc and /usr/sbin on their own partitions, an install 
or upgrade can re-format the "/" and /var partitions without disturbing 
the data I want to keep. The symlink is created as a setup portion 
/etc/rc.d/rc.local which is normally commented out, and run only once on 
the install. (I do all of my upgrades as actual installs, since the data 
is protected from being erased).

Geoff






More information about the mythtv-users mailing list