View previous topic :: View next topic |
Author |
Message |
dobner n00b
Joined: 22 Feb 2003 Posts: 3
|
Posted: Fri Mar 21, 2003 10:22 pm Post subject: Install MySQL Database in /home/mysql |
|
|
Hi,
how I can change the database path with emerge? Like the -localstatedir=/home/mysql/data option at compiling the source.
thx for help,
p. |
|
Back to top |
|
|
dreamer3 Guru
Joined: 24 Sep 2002 Posts: 553
|
Posted: Fri Mar 21, 2003 11:07 pm Post subject: Re: Install MySQL Database in /home/mysql |
|
|
dobner wrote: | Hi,
how I can change the database path with emerge? Like the -localstatedir=/home/mysql/data option at compiling the source.
thx for help,
p. |
You would need to edit the ebuild by hand to do this... |
|
Back to top |
|
|
MoonWalker Guru
Joined: 04 Jul 2002 Posts: 510
|
Posted: Sat Mar 22, 2003 9:26 am Post subject: |
|
|
And possibly make use of PORTDIR_OVERLAY in /etc/make.conf to prevent your changes from being overwritten on each 'emerge sync' _________________ /Joakim
Living on earth is expensive, but it includes a free trip around the sun
every year. |
|
Back to top |
|
|
dreamer3 Guru
Joined: 24 Sep 2002 Posts: 553
|
Posted: Sat Mar 22, 2003 9:55 am Post subject: |
|
|
MoonWalker wrote: | And possibly make use of PORTDIR_OVERLAY in /etc/make.conf to prevent your changes from being overwritten on each 'emerge sync' |
Just make sure that portage doesn't miss critical updates in the future because you have the ebuild in PORTDIR_OVERLAY... I've seen portage only consider the files in the overlay if there was one and neglect to mention newer ebuilds in the main tree. Not sure if I'm crazy, that was a bug, or that was and still is the intended behavior, but I've seen it. |
|
Back to top |
|
|
MoonWalker Guru
Joined: 04 Jul 2002 Posts: 510
|
Posted: Sat Mar 22, 2003 10:43 am Post subject: |
|
|
I haven't tried this for a while but earlier if you put "same" ebuild in OVERLAY portage freaked out forcing you to make it -r1 or something. This is stupid behaviour I think. Better if PORTDIR_OVERLAY just overtrumphed PORTDIR when ebuilds have same name, as an update in PORTDIR then whould show itself. _________________ /Joakim
Living on earth is expensive, but it includes a free trip around the sun
every year. |
|
Back to top |
|
|
jagerman Tux's lil' helper
Joined: 27 Jun 2002 Posts: 104 Location: Vancouver, BC, Canada
|
Posted: Sat Mar 22, 2003 7:34 pm Post subject: Re: Install MySQL Database in /home/mysql |
|
|
dobner wrote: | Hi,
how I can change the database path with emerge? Like the -localstatedir=/home/mysql/data option at compiling the source.
thx for help,
p. |
Why do you need to do this with emerge? /etc/mysql/my.cnf will allow you to change the various files that MySQL uses - the one you are looking for is "datadir", which is /var/lib/mysql by default. I don't see much need to try to do this through the ebuild. |
|
Back to top |
|
|
|