Entry
When installing from RPMs, how can I change the directory where the database files reside?
Jan 25th, 2000 08:57
Nathan Wallace, David Coulson
With rpms, you'll have a /etc/rc.d/init.d/mysql script, which starts the
safe_mysqld binary. In this file, there is a 'datadir' variable, which
points to the directory containing the databases. Simply change this
directory path to something else (you might want to change other
references to /var/lib/mysql too, such as for the process id file and
the .err file).