From: Tomas Krasnican <krasko@krasko.sk>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] mysql use flag witout server, using only client libaries
Date: Thu, 29 Jul 2010 18:19:09 +0200 [thread overview]
Message-ID: <4C51A9FD.4020203@krasko.sk> (raw)
In-Reply-To: <201007291717.15791.alan.mckinnon@gmail.com>
Alan McKinnon wrote:
> On Thursday 29 July 2010 16:54:45 Tomas Krasnican wrote:
>> Hi list,
>>
>> I'm sorry for my bad english..
>>
>> I would like to emerge some packages using mysql use flag (and mysql flag
>> features, for example. php, dovecot, postfix, ...), but without mysql
>> database server (applications will connecting to the mysql database on the
>> another (remote) server). Problem is, when I set the mysql use flag at
>> some package, and I try to emerge that, mysql database is in the
>> dependencies list.
>>
>> I want to emerge that without mysql database server, using mysql client
>> libraries only. How can I define that?
>>
>> Thanks,
>> Regards,
>> Tomas Krasnican
>
>
> Short answer: you can't.
>
> Long answer: you might but the devs are not going to help you
>
> Huge answer: a mysql client has support for connecting to a server on
> localhost. Apps like dovecot etc therefore assume the same. So the ebuilds
> install mysql if you ask for mysql support and you get everything.
>
> There is no exact meaning for the mysql USE flag, it is interpreted (mostly)
> in whatever way the dev thinks it makes sense. Maybe this should not be like
> this. Doesn't matter - right now that's how it is. So you could inspect each
> ebuild you use for stuff that has mysql support and rip it apaprt to make it
> do what you want. Repeat for every version bump.
>
>
>
> Or, you could just do the sane thing:
>
> # equery size mysql
> * dev-db/mysql-5.1.46
> Total files : 403
> Total size : 45.03 MiB
>
> It's 45M, not a train smash. Most of that is docs, support configs, other
> weird shit that Sun thought was a good idea, client libs, common libs. And the
> server binary.
>
>
> You are running php, dovecot and postfix on the box. Therefore apache too.
>
> Trust me, the extra 2M the mysql server takes up is not disk space you are
> short off. Not worth the effort.
>
Thanks for your reply.
When I'll install the mysql database server on the box, the lot of "gentoo-like" things will require it localy.
For example, when I emerge php with mysql support, the apache rc script will contains something like "use mysql ....", or "need mysql" in that depend part. When I emerge something else with mysql support too, it will containts this thing too. And when I try to restart some of that, or when I wanna to restart the box, the mysql server will be started and it will take more time, as is realy needed. I wouldn't like that...
I can edit this scripts and remove the mysql dependency manually...but Why I must do it using this way? I wouldn't like to edit lot of rc scripts after every update. I am too lazy (and many admins too, I think) for doing this...
For "daily" modifying are designed the configuration files, but not rc (and not only rc) scripts. I think that developers are able to edit this scripts, when is it needed, but not end-user.
And I haven't see any reason to run mysql server localy, when all of applications are using external box as the database server. So, I looking for the another solution of this "problem".
Any ideas about this "problem"?
Thanks
Tomas Krasnican
next prev parent reply other threads:[~2010-07-29 16:20 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-07-29 14:54 [gentoo-user] mysql use flag witout server, using only client libaries Tomas Krasnican
2010-07-29 15:17 ` Alan McKinnon
2010-07-29 16:19 ` Tomas Krasnican [this message]
2010-07-29 18:36 ` Peter Humphrey
2010-07-29 17:54 ` Neil Bothwick
2010-07-29 19:47 ` Peter Humphrey
2010-07-29 20:37 ` Tomas Krasnican
2010-07-31 8:58 ` Stroller
2010-07-31 22:01 ` kashani
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4C51A9FD.4020203@krasko.sk \
--to=krasko@krasko.sk \
--cc=gentoo-user@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox