Uninstall MySQL 5 from Debian

I completely. completely messed up MySQL. Badly. I wiped out the data directory (/var/lib/mysql in Debian) and the went to remove mysql …
apt-get remove --purge mysql-server

That only deleted something like 86K. dissapointing. It looks like “mysql-server” is a shortcut pointing to the latest version of the software. The real software is foundĀ  under the name “mysql-server-50″. So what made it happen was:
apt-get remove --purge mysql-server*

That’ll wipe out whatever mysql install is in place.

Related posts:

  1. what not to do in MySQL… and how to pick up the pieces
  2. MySQL server –purge and reinstall
  3. FreeBSD MYSQL configuration
  4. MySQL table storage engine (switching from MyIsam to InnoDB)
  5. ZFS Cant rm: No space left on device

    • Wagner Pereira
    • June 11th, 2010

    Hi.

    You gave me the answer which I was desperate looking for!

    Now I am able to test Cacti in a virtual machine lab from ZERO.

    My best wishes.

    Wagner Pereira
    wpereiratecno @ twitter

  1. No trackbacks yet.

 

Switch to our mobile site