Description:
Mismatch between --configdir=. and DataDir, looks like the ndb_mgmd put the config.bin in
DataDir since that is current working directory.
How to repeat:
$ pwd
/home/msvensson/run
config.ini has one ndb_mgmd with DataDir=/home/msvensson/run/mgmd.1
$ ~/mysql/7.0-bug45497/storage/ndb/src/mgmsrv/ndb_mgmd --config-dir=. --ndb-nodeid=2 -f
config.ini --nodaemon --verbose
^This works fine the first time, but fails like below next time
$ ~/mysql/7.0-bug45497/storage/ndb/src/mgmsrv/ndb_mgmd --config-dir=. --ndb-nodeid=2 -f
config.ini --nodaemon --verbose
2009-09-29 09:42:18 [MgmtSrvr] ERROR -- The file './ndb_2_config.bin.1' already exist
while preparing
2009-09-29 09:42:18 [MgmtSrvr] ERROR -- Configuration change failed! error: 6 'Prepare
of config change failed'
Suggested fix:
Convert the . to a realpath