I installed mysql 5.5 in /usr/local/mysql . If I apt-get remove the old package, it won't delete the data directory in /var/lib/mysql will it?
UPDATE: Yes it's an official standard generic Ubuntu package
The one way to know for certain is to inspect the
But why chance it? Make a backup first, and then remove.