Bug 55873

Summary: start/stop script does not read config file.
Product: [Retired] Red Hat Linux Reporter: Itai Nahshon <itai.nahshon>
Component: mysqlAssignee: Patrick Macdonald <patrickm>
Status: CLOSED RAWHIDE QA Contact: David Lawrence <dkl>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.2Keywords: FutureFeature
Target Milestone: ---   
Target Release: ---   
Hardware: i686   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2001-11-08 02:04:07 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Itai Nahshon 2001-11-08 02:04:01 UTC
From Bugzilla Helper:
User-Agent: Mozilla/4.76 [en] (X11; U; Linux 2.2.17-14 i686)

Description of problem:
The start/stop script in /etc/rc.d/init.d/mysqld has filenames and
directories hard-coded. If I change the datadir in /etc/mycnf
immediately after installation, the initial  databases will be created
in the correct location but they will be owned by root and
the daemon will fail to start.

Version-Release number of selected component (if applicable):
mysql-3.23.41-1

How reproducible:
Always

Steps to Reproduce:
change datadir in /etc/my.cnf after installation (before first time that
mysqld is started).
Create empty directory (with the same name, owned by mysql).
Start mysql by running '/etc/rc.d/init.d/mysqld start'.

Comment 1 Trond Eivind Glomsrxd 2001-11-15 00:11:38 UTC
mysql-3.23.44-2 now has the datadir in one location. Changing it is an
unsupported operation, but there's now less to change.