Complete uninstall of MySQL from Debian

Posted on 2006-05-19
Medium Priority
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

psadac earned 750 total points
ID: 16725380
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.


Author Comment

ID: 16730791
Ya, I got the .deb package from a site dotdeb.org.  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!  

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

By, Vadim Tkachenko. In this article we’ll look at ClickHouse on its one year anniversary.
The title says it all. Writing any type of PHP Application or API code that provides high throughput, while under a heavy load, seems to be an arcane art form (Black Magic). This article aims to provide some general guidelines for producing this typ…
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
Suggested Courses

864 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