Whilst uprading, the mysql-server package appears to have removed my /var/lib/mysql and replaced it with a fresh, empty directory. The original /var/lib/mysql was a symlink to another location on the system and no actual data was lost. Removing the new directory and replacing the symlink solved the issue.
hi peter, istr this actually being a reported problem with dpkg, but don't have the time to dig up the bugreport right now due to all the sarge-related stuff going on. i'll take a closer look at it later. thanks, sean
reassign 307730 dpkg thanks Hello I remember that, too, and reassign this bug to dpkg. It could be merged with dpkg's #182747 although I would still call it "important" and not "withlist" (ran into exact the same problem once myself). bye,
reassign 307730 mysql-server thanks Reading the preinst script of mysql-server, it appears to muck around with this directory if it's a symlink -- so I don't think this is a dpkg bug. Scott
The bug the person above mentions is very different... That's when the previous version contained a directory, and the new version doesn't. dpkg obviously tries to remove it ... but this is a symlink on the user's machine and dpkg removes the symlink (because it handles symlink-to-directories as directories) when the user didn't want it to. Scott