#307730 mysql-server: mysql upgrade removed DB directory symlink

Package:
dpkg
Source:
dpkg
Description:
Debian package management system
Submitter:
Peter Lieverdink
Date:
2015-02-25 11:09:12 UTC
Severity:
wishlist
#307730#5
Date:
2005-05-05 01:35:00 UTC
From:
To:
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.

#307730#10
Date:
2005-05-05 15:27:27 UTC
From:
To:
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

#307730#15
Date:
2005-05-05 16:50:41 UTC
From:
To:
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,

#307730#22
Date:
2005-06-18 16:29:09 UTC
From:
To:
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

#307730#27
Date:
2005-06-18 16:31:17 UTC
From:
To:
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