Uninstall Mysql from Ubuntu

Asked

Viewed 18,166 times

1

I’m trying to give up Ubuntu’s Mysql with the command

sudo apt-get remove mysql-server --purge

But every time it returns me an error saying that Mysql is already updated, I already tried to use the autoremove, clean. I have stopped the server but still it does not uninstall, below the answer when trying to remove Mysql

Lendo listas de pacotes... Pronto
Construindo árvore de dependências       
Lendo informação de estado... Pronto
O pacote 'mysql-server' não está instalado, por isso não será removido
0 pacotes atualizados, 0 pacotes novos instalados, 0 a serem removidos e 11 não atualizados.
1 pacotes não totalmente instalados ou removidos.
Depois desta operação, 0 B adicionais de espaço em disco serão usados.
Configurando mysql-server-5.7 (5.7.25-0ubuntu0.18.04.2) ...
Checking if update is needed.
This installation of MySQL is already upgraded to 5.7.25, use --force if you still need to run mysql_upgrade
dpkg: erro ao processar o pacote mysql-server-5.7 (--configure):
installed mysql-server-5.7 package post-installation script subprocess returned error exit status 1
Erros foram encontrados durante o processamento de:
mysql-server-5.7
E: Sub-process /usr/bin/dpkg returned an error code (1)

2 answers

4


Try:

sudo apt-get remove --purge mysql*
sudo apt-get purge mysql*
sudo apt-get autoremove
sudo apt-get autoclean
sudo apt-get remove dbconfig-mysql
sudo apt-get dist-upgrade
  • You could add some reference to the commands, don’t you think? It’s not very interesting that he "does" and doesn’t understand "what he’s doing"...

0

Browser other questions tagged

You are not signed in. Login or sign up in order to post.