/etc/rc.d/init.d/mysqld hardcodes datadir - mysql won't load

Chris Adams cmadams at hiwaay.net
Wed Oct 29 04:04:44 UTC 2003


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.
-- 
Chris Adams <cmadams at hiwaay.net>
Systems and Network Administrator - HiWAAY Internet Services
I don't speak for anybody but myself - that's enough trouble.





More information about the test mailing list