Unix Technical Forum

Making a prefixed install / hard-wired global configuration files?

This is a discussion on Making a prefixed install / hard-wired global configuration files? within the MySQL General forum forums, part of the MySQL category; --> Is there an easy way to build MySQL client library, server and start-up script so that /etc/my.cnf is ignored? ...


Go Back   Unix Technical Forum > Database Server Software > MySQL > MySQL General forum

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-28-2008, 06:04 AM
Nick Hill
 
Posts: n/a
Default Making a prefixed install / hard-wired global configuration files?

Is there an easy way to build MySQL client library, server and start-up script
so that /etc/my.cnf is ignored?

I need to build client and server so that it in no way interacts with the global
system install, and build programs against that client library which also don't
interact with the global system install.

My attempts so far show that I need to make hacks to get it to work, where I
expected something like ./configure --prefix=/my/prefix --global_config=blah
would do the trick but doesn't seem to be the case.

I notice Linux distros often have their configs in places other than
/etc/my.cnf. Have I overlooked something?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-28-2008, 06:04 AM
Jeremy Cole
 
Posts: n/a
Default Re: Making a prefixed install / hard-wired global configuration files?

Hi Nick,

This should do it:

--sysconfdir=DIR read-only single-machine data [PREFIX/etc]

Regards,

Jeremy

Nick Hill wrote:
> Is there an easy way to build MySQL client library, server and start-up
> script so that /etc/my.cnf is ignored?
>
> I need to build client and server so that it in no way interacts with
> the global system install, and build programs against that client
> library which also don't interact with the global system install.
>
> My attempts so far show that I need to make hacks to get it to work,
> where I expected something like ./configure --prefix=/my/prefix
> --global_config=blah would do the trick but doesn't seem to be the case.
>
> I notice Linux distros often have their configs in places other than
> /etc/my.cnf. Have I overlooked something?
>


--
high performance mysql consulting
www.provenscaling.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-28-2008, 06:04 AM
Nick Hill
 
Posts: n/a
Default Re: Making a prefixed install / hard-wired global configuration files?

Hello Jeremy

Thank you for the pointer. After make clean, re-configured, re-compiled then
tried, but /path/to/bin/mysql --help still shows /etc/my.cnf as the default file.

Jeremy Cole wrote:
> Hi Nick,
>
> This should do it:
>
> --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
>
> Regards,
>
> Jeremy
>
> Nick Hill wrote:
>> Is there an easy way to build MySQL client library, server and
>> start-up script so that /etc/my.cnf is ignored?
>>
>> I need to build client and server so that it in no way interacts with
>> the global system install, and build programs against that client
>> library which also don't interact with the global system install.
>>
>> My attempts so far show that I need to make hacks to get it to work,
>> where I expected something like ./configure --prefix=/my/prefix
>> --global_config=blah would do the trick but doesn't seem to be the case.
>>
>> I notice Linux distros often have their configs in places other than
>> /etc/my.cnf. Have I overlooked something?
>>

>

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 12:23 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com