top of page


Experience of emoving mysql in debian/ubuntu forcefully

I had faced this instance where there ocurred problem with mysql configuration in debian. Something went wrong with the configuration and could not be traced out. We needed to fix it soon and reinstall was the easy option as there was no useful data. But, the package couldn’t be removed because mysql is stopped before removing, Here, what was happening was that the init script would neither start or stop mysqld due to configuration error. Thus, the package couldn’t be removed as it failed to stop mysql. So, thus I followed a hack’ish kind of a method to remove mysql. First I killed mysqld by using top. Then I edited the file /var/lib/dpkg/mysql-server.prerm to remove the relevant section. So, now when I remove the package, the script won’t try to stop mysql-server. Thus, I was cleanly able to remove the package without any problems. Also, you get choice whether you want to keep your databases or remove them. Thus, is safe if you have important database. Though, this method doesn’t have any bad side effects as far as I know, but still it would be better to sort out the configuration issues but here I had no other choice as it was important to remove it quickly and also there were no important configuration saved.

5 views0 comments

Recent Posts

See All

Mediawiki on dotcloud

Unfortunately, there’s no guide available for installing mediawiki on dotcloud and googling for it doesn’t turn up anything much useful. But, I had to move out LUG wiki to dotcloud. I proceeded with i

WordPress Performance Tips

Do you find performance of your WordPress blog to be lousy? And have no clue on where to start with it? There are lots of articles on the Internet which will tell you what to do. So, instead of repeat

BarCampMumbai5 – The Experience, The Firsts

Sunday February 1 2009 was the day when BarCampMumbai 5 was held with the same old enthusiasm but at a whole new venue – VJTI College, Matunga. The camp was host to many firsts for the BCM as well as


bottom of page