Sxooter wrote:I was wondeing what kind of interlocking MySQL has to prevent you from running two instances at the same time.
I've no idea- but it works.
Plus, if you ran two copies of MySQL against the same data store, I'd expect more than one row slightly shuffled. I'd expect LOTS of rows shuffled, duped, deleted, etc...
Actually believe it or not, with some table handlers, this is a supported configuration. Provided you don't use --skip-external-locking, then MySQL SHOULD correctly use the OS file locking to prevent concurrent access to tables.
It may break a few things though.
But it works with embedded mysql too.
Although I think this has very little (i.e. probably nothing) to do with the OP's problem.
I've found MySQL to be very robust - although earlier versions did have some peculiar behaviour when running out of disc space (nothing that lost any data though).
Mark