|
|||||||||||
|
my.cnf search order revisited
From: Lloyd Zusman <ljz(at)asfast.com>
Date: Sat Sep 15 2007 - 23:14:24 EDT
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 on this instance of mysql, and yum keeps them all in sync. However, for various reasons, I need to bring up a second, completely separate version of mysql on this system in a way that doesn't depend on the package manager. Therefore, I decided to build mysql from source and to change all of the paths so that every directory that is uses is under a private file system that I created: /usr/private. In order to perform the build, I did the configuration as follows: dir=/usr/private ./configure \--mandir=${dir}/man I then did a "make" followed by a "make install", and everything properly got installed under the completely separate /usr/private directory. 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=lists@pantek.comReceived on Sat Sep 15 23:30:37 2007 This archive was generated by hypermail 2.1.8 : Sun Oct 07 2007 - 07:59:28 EDT |
||||||||||
|
|||||||||||