Complete uninstall of MySQL from Debian

Posted on 2006-05-19
Last Modified: 2008-01-09
I am currently running Debian Sarge 3.1 and have installed MySQL-Server-5.0 deb package.  I would like to uninstall the complete package so I run the following:

aptitude remove mysql-server-5.0

I have also tried aptitude purge remove mysql-server-5.0

I understand that some depencies like mysql-common and mysql-admin are still floating around.  So i go and uninstall them too.  But when I go to reinstall Mysql-server-5.0 on the same machine, then try to configure the password, it cannot be changed.  So, in completely uninstalling MySQL from linux (debian) what other files should I be addressing for a complete uninstall?
Question by:orestyle1
    LVL 14

    Accepted Solution

    first you should try this :
    second, i don't think mysql 5.0 is part of debian sarge (stable), you must be on testing or unstable. anyway, you can also try
    apt-get remove --purge mysql-server-5.0
    if this does not work, remove the directory /var/lib/mysql, it will delete all your databases.

    LVL 1

    Author Comment

    Ya, I got the .deb package from a site  I assume the guy is compiling packages to support LAMP install.  I have tried the purge option.  But is seems there are other files out there.  For instance I had to delete everything that had anything to do with mysql, but it seems that there where some mysql-admin packages out there that where preventing me from a fresh install.  

    Anyway, I thing the info you gave is gonna get me where I need to be,  thanks for the response!  

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    As a database administrator, you may need to audit your table(s) to determine whether the data types are optimal for your real-world data needs.  This Article is intended to be a resource for such a task. Preface The other day, I was involved …
    Introduction Since I wrote the original article about Handling Date and Time in PHP and MySQL ( several years ago, it seemed like now was a good time to updat…
    Hi everyone! This is Experts Exchange customer support.  This quick video will show you how to change your primary email address.  If you have any questions, then please Write a Comment below!
    Internet Business Fax to Email Made Easy - With eFax Corporate (, you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    9 Experts available now in Live!

    Get 1:1 Help Now