How to Install and Uninstall mysql-server-5.7 Package on Ubuntu 16.04 LTS (Xenial Xerus)

Last updated: December 24,2024

1. Install "mysql-server-5.7" package

Please follow the guidance below to install mysql-server-5.7 on Ubuntu 16.04 LTS (Xenial Xerus)

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

2. Uninstall "mysql-server-5.7" package

Here is a brief guide to show you how to uninstall mysql-server-5.7 on Ubuntu 16.04 LTS (Xenial Xerus):

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

3. Information about the mysql-server-5.7 package on Ubuntu 16.04 LTS (Xenial Xerus)

Package: mysql-server-5.7
Architecture: amd64
Version: 5.7.33-0ubuntu0.16.04.1
Priority: optional
Section: database
Source: mysql-5.7
Origin: Ubuntu
Maintainer: Ubuntu Developers
Original-Maintainer: Debian MySQL Maintainers
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Installed-Size: 46524
Provides: virtual-mysql-server
Pre-Depends: adduser (>= 3.40), debconf, mysql-common (>= 5.5)
Depends: apparmor (>= 2.10), bsdutils, initscripts, lsb-base (>= 4.1+Debian11ubuntu7), mysql-client-5.7 (>= 5.7.33-0ubuntu0.16.04.1), mysql-common (>= 5.6.22-1~), mysql-server-core-5.7 (= 5.7.33-0ubuntu0.16.04.1), passwd, perl (>= 5.6), psmisc, debconf (>= 0.5) | debconf-2.0, init-system-helpers (>= 1.18~), libc6 (>= 2.17), libgcc1 (>= 1:3.0), liblz4-1 (>= 0.0~r127), libssl1.0.0 (>= 1.0.2~beta3), libstdc++6 (>= 5.2), zlib1g (>= 1:1.1.4)
Recommends: libhtml-template-perl
Suggests: mailx, tinyca
Conflicts: mysql-client-5.5, mysql-server-5.5, virtual-mysql-server
Breaks: mysql-server-5.6 (<< 5.7)
Replaces: mysql-client-5.5, mysql-server-5.5, mysql-server-5.6 (<< 5.7), virtual-mysql-server
Filename: pool/main/m/mysql-5.7/mysql-server-5.7_5.7.33-0ubuntu0.16.04.1_amd64.deb
Size: 2423224
MD5sum: 5297f25d9126976c7cd3c70c45aa5bb9
SHA1: 51c5f5ac2b14bda2a64128e9b8fc68bf0b476d90
SHA256: e15c41523558c9ebc6565a52a116c99351bc4a41b09c962b8e99b5286d9f9de7
SHA512: 0e8c3d1b23fc2899d703c54665bb5765226e9180d801e0e19211bf47c1187136a1b399f11cb610b85d149c5f8e261961c1b9797993e55d8814377beccf456273
Homepage: http://dev.mysql.com/
Description-en: MySQL database server binaries and system database setup
MySQL is a fast, stable and true multi-user, multi-threaded SQL database
server. SQL (Structured Query Language) is the most popular database query
language in the world. The main goals of MySQL are speed, robustness and
ease of use.
.
This package contains all the infrastructure needed to setup system
databases.
Description-md5: 3ae11e16f793b3ee84f73a5fa268ad9b
Task: lamp-server, mythbuntu-frontend, mythbuntu-desktop, mythbuntu-backend-slave, mythbuntu-backend-master, mythbuntu-backend-master
Supported: 5y

Package: mysql-server-5.7
Priority: optional
Section: database
Installed-Size: 47321
Maintainer: Ubuntu Developers
Original-Maintainer: Debian MySQL Maintainers
Architecture: amd64
Source: mysql-5.7
Version: 5.7.11-0ubuntu6
Replaces: mysql-client-5.5, mysql-server-5.5, mysql-server-5.6 (<< 5.7), virtual-mysql-server
Provides: virtual-mysql-server
Depends: apparmor (>= 2.10), bsdutils, initscripts, lsb-base (>= 4.1+Debian11ubuntu7), mysql-client-5.7 (>= 5.7.11-0ubuntu6), mysql-common (>= 5.6.22-1~), mysql-server-core-5.7 (= 5.7.11-0ubuntu6), passwd, perl (>= 5.6), psmisc, debconf (>= 0.5) | debconf-2.0, init-system-helpers (>= 1.18~), libc6 (>= 2.15), libgcc1 (>= 1:3.0), libstdc++6 (>= 5.2), zlib1g (>= 1:1.1.4)
Pre-Depends: adduser (>= 3.40), debconf, mysql-common (>= 5.5)
Recommends: libhtml-template-perl
Suggests: mailx, tinyca
Conflicts: mysql-client-5.5, mysql-server-5.5, virtual-mysql-server
Breaks: mysql-server-5.6 (<< 5.7)
Filename: pool/main/m/mysql-5.7/mysql-server-5.7_5.7.11-0ubuntu6_amd64.deb
Size: 2602826
MD5sum: d2104ed35b06e83792e928ef263f07f1
SHA1: 0be7dfa4515242fd6b02ae3a8209cedd2bfb8f5b
SHA256: aada193d17646b684722d29aaa57913b6eabf936d02ab331f9e32f3550a6025d
Description-en: MySQL database server binaries and system database setup
MySQL is a fast, stable and true multi-user, multi-threaded SQL database
server. SQL (Structured Query Language) is the most popular database query
language in the world. The main goals of MySQL are speed, robustness and
ease of use.
.
This package contains all the infrastructure needed to setup system
databases.
Description-md5: 3ae11e16f793b3ee84f73a5fa268ad9b
Homepage: http://dev.mysql.com/
Bugs: https://bugs.launchpad.net/ubuntu/+filebug
Origin: Ubuntu
Supported: 5y
Task: lamp-server, mythbuntu-frontend, mythbuntu-desktop, mythbuntu-backend-slave, mythbuntu-backend-master, mythbuntu-backend-master