How to Install and Uninstall mysql-server-8.0 Package on Ubuntu 20.04 LTS (Focal Fossa)

Last updated: December 23,2024

1. Install "mysql-server-8.0" package

Please follow the guidelines below to install mysql-server-8.0 on Ubuntu 20.04 LTS (Focal Fossa)

$ sudo apt update $ sudo apt install mysql-server-8.0

2. Uninstall "mysql-server-8.0" package

Please follow the steps below to uninstall mysql-server-8.0 on Ubuntu 20.04 LTS (Focal Fossa):

$ sudo apt remove mysql-server-8.0 $ sudo apt autoclean && sudo apt autoremove

3. Information about the mysql-server-8.0 package on Ubuntu 20.04 LTS (Focal Fossa)

Package: mysql-server-8.0
Architecture: amd64
Version: 8.0.36-0ubuntu0.20.04.1
Priority: optional
Section: database
Source: mysql-8.0
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Debian MySQL Maintainers
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 1423
Provides: virtual-mysql-server
Pre-Depends: adduser (>= 3.40), debconf, mysql-common (>= 5.5)
Depends: lsb-base (>= 3.0-10), mysql-client-8.0 (>= 8.0.36-0ubuntu0.20.04.1), mysql-common (>= 5.8+1.0.4~), mysql-server-core-8.0 (= 8.0.36-0ubuntu0.20.04.1), passwd, perl:any (>= 5.6), psmisc, debconf (>= 0.5) | debconf-2.0
Recommends: libhtml-template-perl, mecab-ipadic-utf8
Suggests: mailx, tinyca
Conflicts: mariadb-server-10.1, mariadb-server-10.3, mysql-server-5.7, virtual-mysql-server
Filename: pool/main/m/mysql-8.0/mysql-server-8.0_8.0.36-0ubuntu0.20.04.1_amd64.deb
Size: 1326064
MD5sum: 487566536e141d8463c3774da7b7543f
SHA1: 7bbc587fc77f8b0a9c2fe2650cd49a6557a55746
SHA256: d53590c65ae25c057d98b73b7a42dfbb98dc608b8b23084f26ed23c97e0a93de
SHA512: c43f6b1288dada8588e31de6ce33ece9edc8439f1bf288b380516bb0b672ea0a1593beed622355fbd9f9fad7512c34ab93365a08059d2bd4a553ef84e68b999f
Homepage: http://dev.mysql.com/
Description: MySQL database server binaries and system database setup
Description-md5: 3ae11e16f793b3ee84f73a5fa268ad9b
Task: lamp-server

Package: mysql-server-8.0
Architecture: amd64
Version: 8.0.19-0ubuntu5
Priority: optional
Section: database
Source: mysql-8.0
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Debian MySQL Maintainers
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 1385
Provides: virtual-mysql-server
Pre-Depends: adduser (>= 3.40), debconf, mysql-common (>= 5.5)
Depends: lsb-base (>= 3.0-10), mysql-client-8.0 (>= 8.0.19-0ubuntu5), mysql-common (>= 5.8+1.0.4~), mysql-server-core-8.0 (= 8.0.19-0ubuntu5), passwd, perl:any (>= 5.6), psmisc, debconf (>= 0.5) | debconf-2.0
Recommends: libhtml-template-perl, mecab-ipadic-utf8
Suggests: mailx, tinyca
Conflicts: mariadb-server-10.1, mariadb-server-10.3, mysql-server-5.7, virtual-mysql-server
Filename: pool/main/m/mysql-8.0/mysql-server-8.0_8.0.19-0ubuntu5_amd64.deb
Size: 1214960
MD5sum: 880d495c1a5d98c9642843234abe4a7f
SHA1: f7568137f4a65d95ed5caacc79a8eec1ac6d4e8e
SHA256: 454284c99564ea629af8e6c43aaced7169ce5e9564f0cf122680e2ccb63a0428
Homepage: http://dev.mysql.com/
Description: MySQL database server binaries and system database setup
Description-md5: 3ae11e16f793b3ee84f73a5fa268ad9b
Task: lamp-server