How To Install mysql-server-core-8.0 on Ubuntu 20.04

In this tutorial we learn how to install mysql-server-core-8.0 on Ubuntu 20.04. mysql-server-core-8.0 is MySQL database server binaries MySQL database server binaries

Introduction

In this tutorial we learn how to install mysql-server-core-8.0 on Ubuntu 20.04.

What is mysql-server-core-8.0

mysql-server-core-8.0 is:

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 includes the server binaries but doesn’t contain all the infrastructure needed to setup system databases. Task: lamp-server

Package: mysql-server-core-8.0 Architecture: amd64 Version: 8.0.19-0ubuntu5 Priority: optional Section: database Source: mysql-8.0 Origin: Ubuntu Maintainer: Ubuntu Developers [email protected] Original-Maintainer: Debian MySQL Maintainers [email protected] Bugs: https://bugs.launchpad.net/ubuntu/+filebug Installed-Size: 118151 Provides: virtual-mysql-server-core Depends: libaio1 (>= 0.3.93), libc6 (>= 2.29), libevent-core-2.1-7 (>= 2.1.8-stable), libgcc-s1 (>= 3.4), liblz4-1 (>= 0.0~r130), libmecab2 (>= 0.996), libnuma1 (>= 2.0.11), libssl1.1 (>= 1.1.1), libstdc++6 (>= 9), zlib1g (>= 1:1.2.0) Conflicts: mariadb-server-10.1, mariadb-server-10.3, mariadb-server-core-10.1, mariadb-server-core-10.3, mysql-server-5.7, mysql-server-core-5.7, virtual-mysql-server-core Filename: pool/main/m/mysql-8.0/mysql-server-core-8.0_8.0.19-0ubuntu5_amd64.deb Size: 17031672 MD5sum: e11efe25842db40f0f3e5bbe5986ed1d SHA1: 422ca67ac64035b0a0958883ffb96127df010ed3 SHA256: c27d9fedcf1050ee22bb1d5cee67749fb0fbb04e1454685d42796b97fe9acb5f Homepage: http://dev.mysql.com/ Description-en: MySQL database server binaries 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 includes the server binaries but doesn’t contain all the infrastructure needed to setup system databases. Task: lamp-server

There are three methods to install mysql-server-core-8.0 on Ubuntu 20.04. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.

Install mysql-server-core-8.0 Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install mysql-server-core-8.0 using apt-get by running the following command:

sudo apt-get -y install mysql-server-core-8.0

Install mysql-server-core-8.0 Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install mysql-server-core-8.0 using apt by running the following command:

sudo apt -y install mysql-server-core-8.0

Install mysql-server-core-8.0 Using aptitude

If you want to follow this method, you might need to install aptitude first since aptitude is usually not installed by default on Ubuntu. Update apt database with aptitude using the following command.

sudo aptitude update

After updating apt database, We can install mysql-server-core-8.0 using aptitude by running the following command:

sudo aptitude -y install mysql-server-core-8.0

How To Uninstall mysql-server-core-8.0 on Ubuntu 20.04

To uninstall only the mysql-server-core-8.0 package we can use the following command:

sudo apt-get remove mysql-server-core-8.0

Uninstall mysql-server-core-8.0 And Its Dependencies

To uninstall mysql-server-core-8.0 and its dependencies that are no longer needed by Ubuntu 20.04, we can use the command below:

sudo apt-get -y autoremove mysql-server-core-8.0

Remove mysql-server-core-8.0 Configurations and Data

To remove mysql-server-core-8.0 configuration and data from Ubuntu 20.04 we can use the following command:

sudo apt-get -y purge mysql-server-core-8.0

Remove mysql-server-core-8.0 configuration, data, and all of its dependencies

We can use the following command to remove mysql-server-core-8.0 configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge mysql-server-core-8.0

References

Summary

In this tutorial we learn how to install mysql-server-core-8.0 package on Ubuntu 20.04 using different package management tools: apt, apt-get and aptitude.