From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3a) Gecko/20021207
Description of problem:
If the datadir for mysql is changed in /etc/my.cnf the new datadir is ignored
because it is overriden by the the datadir defined in /etc/rc.d/init.d/mysqld.
If I change the datadir in /etc/my.cnf when I restart mysqld it should use the
new datadir, but the command that is generated by the script overrides the
option that I define in /etc/my.cnf.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1.create a directory /mysql
2.cp -R /var/lib/mysql/ /mysql
3.chown -R mysql:mysql /mysql
4.edit /etc/my.cnf to use the /mysql for datadir
Actual Results: /sbin/service mysqld status
returns: mysqld dead but subsys locked
Expected Results: mysql should be running and should be using /mysql for the
if the variable datadir in /etc/rc.d/init.d/mysqld is changed to be /mysql then
it will work, but I shouldn't have to change this. It should just use what I
defined in the config file.
This is a duplicate of an enhancement request. We're currently looking into
it. Dup of 76051
*** This bug has been marked as a duplicate of 76051 ***
Changed to 'CLOSED' state since 'RESOLVED' has been deprecated.