Ubuntu 20.04でMySQLをアンインストールする

2021年10月31日

OSバージョンを確認

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
# 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バージョンを確認

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
# 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をアンインストール

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
# 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

 

Ubuntu 20.04

Posted by arkgame