Home > Database > Mysql Tutorial > How to completely delete mysql in unbuntu?

How to completely delete mysql in unbuntu?

青灯夜游
Release: 2020-10-06 09:57:06
Original
7350 people have browsed it

Method: 1. Use "sudo apt-get remove mysql-common" and other commands to uninstall mysql; 2. Use "dpkg -l|grep ^rc|awk '{print$2}'|sudo xargs dpkg - P" to clear residual data.

How to completely delete mysql in unbuntu?

  • First check the dependencies of MySQL in the terminal: dpkg --list|grep mysql

  • Uninstall: sudo apt-get remove mysql-common

  • Uninstall:sudo apt-get autoremove --purge mysql-server-5.7

  • ##Purge residual data :

    dpkg -l|grep ^rc|awk '{print$2}'|sudo xargs dpkg -P

  • again View the remaining dependencies of MySQL:

    dpkg --list|grep mysql

  • ##Continue to delete the remaining dependencies, such as:
  • sudo apt-get autoremove --purge mysql-apt-config

  • There are no MySQL dependencies anymore, completely delete them , Good Luck
  • Recommended tutorial:
mysql video tutorial

The above is the detailed content of How to completely delete mysql in unbuntu?. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template