Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Install MySQL Database in /home/mysql
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
dobner
n00b
n00b


Joined: 22 Feb 2003
Posts: 3

PostPosted: Fri Mar 21, 2003 10:22 pm    Post subject: Install MySQL Database in /home/mysql Reply with quote

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
View user's profile Send private message
dreamer3
Guru
Guru


Joined: 24 Sep 2002
Posts: 553

PostPosted: Fri Mar 21, 2003 11:07 pm    Post subject: Re: Install MySQL Database in /home/mysql Reply with quote

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
View user's profile Send private message
MoonWalker
Guru
Guru


Joined: 04 Jul 2002
Posts: 510

PostPosted: Sat Mar 22, 2003 9:26 am    Post subject: Reply with quote

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
View user's profile Send private message
dreamer3
Guru
Guru


Joined: 24 Sep 2002
Posts: 553

PostPosted: Sat Mar 22, 2003 9:55 am    Post subject: Reply with quote

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
View user's profile Send private message
MoonWalker
Guru
Guru


Joined: 04 Jul 2002
Posts: 510

PostPosted: Sat Mar 22, 2003 10:43 am    Post subject: Reply with quote

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
View user's profile Send private message
jagerman
Tux's lil' helper
Tux's lil' helper


Joined: 27 Jun 2002
Posts: 104
Location: Vancouver, BC, Canada

PostPosted: Sat Mar 22, 2003 7:34 pm    Post subject: Re: Install MySQL Database in /home/mysql Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum