|
|||||||||||
|
RE: my.cnf search order revisited
From: Logan, David (DBA - Adelaide) <David.Logan(at)hp.com>
Date: Sat Sep 15 2007 - 23:42:41 EDT
You can always start the instance using the --defaults-file=<path to private my.cnf> option on mysqld_safe. I use this when I have multiple instances and it works fine. Allows you to put anything you wish in that particular my.cnf without it infringing on the other instances. Also you can also use the script mysql_multi in the <basedir>/scripts directory Regards
-----Original Message-----
I've read the other threads here about the search order for my.cnf, but I have encountered a problem that doesn't seem to be addressed in any of the discussions that I could find:
I'm running mysql-5.0.46 under a linux system that has been configured using
yum to manage its rpm packages. Various other system components are
dependent
However, for various reasons, I need to bring up a second, completely
separate
dir=/usr/private
./configure \
--prefix=${dir} \
--exec-prefix=${dir} \
--program-suffix="_${suffix}" \
--bindir=${dir}/bin \
--sbindir=${dir}/sbin \
--libexecdir=${dir}/libexec \
--datadir=${dir}/share \
--sysconfdir=${dir}/etc \
--sharedstatedir=${dir}/var \
--localstatedir=${dir}/var \
--libdir=${dir}/lib \
--includedir=${dir}/include \
--oldincludedir=${dir}/include \
--infodir=${dir}/info \
--mandir=${dir}/man
I then did a "make" followed by a "make install", and everything properly
got
However, there is one fly in the ointment. This new version still wants to look in /etc/my.cnf for its configuration, but since the standard yum-based version is also using /etc/my.cnf, I can't keep the two versions separated in the way I intend. In reading the other discussions here, it seems that a conscious, deliberate decision was made to always have mysql and its utilities look in /etc/my.cnf first, before looking in any of the other locations. This feature prevents me from having these two, completely separate versions running on a single machine. Is it true that my only option is to patch the source code to my private mysql version, so that it looks somewhere other than /etc/my.cnf first? Or is there some other way for me to accomplish what I want to do? Thanks in advance. -- Lloyd Zusman ljz@asfast.com God bless you. -- MySQL Internals Mailing List For list archives: http://lists.mysql.com/internals To unsubscribe: http://lists.mysql.com/internals?unsub=david.logan@hp.comReceived on Sat Sep 15 23:43:08 2007 This archive was generated by hypermail 2.1.8 : Sun Oct 07 2007 - 07:59:29 EDT |
||||||||||
|
|||||||||||