Ubuntu 20.04でMySQLをアンインストールする
OSバージョンを確認
# cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=20.04
DISTRIB_CODENAME=focal
DISTRIB_DESCRIPTION="Ubuntu 20.04.3 LTS"
# cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=20.04
DISTRIB_CODENAME=focal
DISTRIB_DESCRIPTION="Ubuntu 20.04.3 LTS"
# cat /etc/lsb-release DISTRIB_ID=Ubuntu DISTRIB_RELEASE=20.04 DISTRIB_CODENAME=focal DISTRIB_DESCRIPTION="Ubuntu 20.04.3 LTS"
MySQLバージョンを確認
# mysql --version
mysql Ver 15.1 Distrib 10.6.4-MariaDB, for debian-linux-gnu (x86_64) using readline 5.2
# mysql --version
mysql Ver 15.1 Distrib 10.6.4-MariaDB, for debian-linux-gnu (x86_64) using readline 5.2
# mysql --version mysql Ver 15.1 Distrib 10.6.4-MariaDB, for debian-linux-gnu (x86_64) using readline 5.2
MySQLをアンインストール
# sudo apt remove --purge mysql-server
# sudo apt purge mysql-server
# sudo apt autoremove
# sudo apt autoclean
# sudo apt remove dbconfig-mysql
# sudo apt remove --purge mysql-server
# sudo apt purge mysql-server
# sudo apt autoremove
# sudo apt autoclean
# sudo apt remove dbconfig-mysql
# sudo apt remove --purge mysql-server # sudo apt purge mysql-server # sudo apt autoremove # sudo apt autoclean # sudo apt remove dbconfig-mysql