View previous topic :: View next topic |
Author |
Message |
FizzyWidget Veteran
Joined: 21 Nov 2008 Posts: 1133 Location: 127.0.0.1
|
Posted: Sat Jan 07, 2012 1:41 pm Post subject: running mysql from another directory? |
|
|
Is it a simple case of changing the datadir value in /etc/mysql/my.cnf to what ever directory i like before i run emerge --config =dev-db/mysql-5.1.59?
I would like it to run from either /home or the encrypted raid5 system i have so should anything go wrong i have a backup of it _________________ I know 43 ways to kill with a SKITTLE, so taste my rainbow bitch. |
|
Back to top |
|
|
malern Apprentice
Joined: 19 Oct 2006 Posts: 170
|
Posted: Mon Jan 09, 2012 10:01 am Post subject: Re: running mysql from another directory? |
|
|
Dark Foo wrote: | Is it a simple case of changing the datadir value in /etc/mysql/my.cnf to what ever directory i like |
Yes, or alternatively you can make /var/lib/mysql into a symlink which points to whatever dir you want. |
|
Back to top |
|
|
|