LoginSignup
0
1

More than 3 years have passed since last update.

MySQLを完全削除する方法

Posted at

環境

Ubuntu18.04
LMySQL 5.7

sudo apt-get purge mysql*
sudo apt-get autoremove
sudo apt-get autoclean

コード解説


sudo apt-get purge mysql*

purgeはインストールした実行ファイルやライブラリだけでなく、設定ファイルも全て削除するコマンドです。mysqlから始まるファイルなどを全て消します。

このコマンド打つとピンクの画面出る "yse" or "no"
消しますか?聞かれてるからyes


sudo apt-get autoremove

autoremoveは、不要になったパッケージを丸ごと削除してくれます。
※よく使うかも


sudo apt-get autoclean

autocleanでは、使ってないパッケージのアーカイブファイルを削除してくれます。


参考サイト
https://kirohi.com/mysql_uninstall_in_ubuntu
てかほぼパクリです。
すごくわかりやすかった。

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1