/etc/rc.d/init.d/mysqld hardcodes datadir - mysql won't load
Mark Mielke
mark at mark.mielke.cc
Wed Oct 29 08:08:30 UTC 2003
On Tue, Oct 28, 2003 at 10:04:44PM -0600, Chris Adams wrote:
> Once upon a time, Mark Mielke <mark at mark.mielke.cc> said:
> > The symptom is that it tries to 'Initializing MySQL database: ', and then
> > fails, because /usr/bin/mysql_install_db honours /etc/my.cnf and is able
> > to determine (I guess?) that there is nothing to do. When init.d/mysqld
> > continues, $datadir still doesn't exist...
> Since the "initializing MySQL database" is something that only has to be
> done once, just let it do it in the default place and then leave that
> directory alone. The init script thinks the database is initialized,
> you change /etc/my.cnf to point to your real database, and you don't
> have to edit anything going forward.
I wasn't looking for a work around. I'm looking to see if there is
interest in fixing it before Fedora Core is released... :-)
mark
--
mark at mielke.cc/markm at ncf.ca/markm at nortelnetworks.com __________________________
. . _ ._ . . .__ . . ._. .__ . . . .__ | Neighbourhood Coder
|\/| |_| |_| |/ |_ |\/| | |_ | |/ |_ |
| | | | | \ | \ |__ . | | .|. |__ |__ | \ |__ | Ottawa, Ontario, Canada
One ring to rule them all, one ring to find them, one ring to bring them all
and in the darkness bind them...
http://mark.mielke.cc/
More information about the fedora-test-list
mailing list