How To Install mysql-client-8.0 on Ubuntu 20.04
Introduction
In this tutorial we learn how to install mysql-client-8.0
on Ubuntu 20.04.
What is mysql-client-8.0
mysql-client-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 client binaries and the additional tool mysqlreport. Task: lamp-server
Package: mysql-client-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: 163 Provides: virtual-mysql-client Depends: debianutils (>= 1.6), mysql-client-core-8.0, mysql-common (>= 5.5) Conflicts: mariadb-client-10.1, mariadb-client-10.3, mysql-client-5.7, virtual-mysql-client Filename: pool/main/m/mysql-8.0/mysql-client-8.0_8.0.19-0ubuntu5_amd64.deb Size: 22028 MD5sum: 01867c64e86e2e5fda43efc8d51f1ce4 SHA1: 0223e5985320303d52b1789e02984872ce028ef7 SHA256: aa71415d125ee82f1f52be56a8a125f801fd5337587a3d507381ae5f1d9f679d Homepage: http://dev.mysql.com/ Description-en: MySQL database client 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 client binaries and the additional tool mysqlreport. Task: lamp-server
There are three methods to install mysql-client-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-client-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-client-8.0
using apt-get
by running the following command:
sudo apt-get -y install mysql-client-8.0
Install mysql-client-8.0 Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install mysql-client-8.0
using apt
by running the following command:
sudo apt -y install mysql-client-8.0
Install mysql-client-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-client-8.0
using aptitude
by running the following command:
sudo aptitude -y install mysql-client-8.0
How To Uninstall mysql-client-8.0 on Ubuntu 20.04
To uninstall only the mysql-client-8.0
package we can use the following command:
sudo apt-get remove mysql-client-8.0
Uninstall mysql-client-8.0 And Its Dependencies
To uninstall mysql-client-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-client-8.0
Remove mysql-client-8.0 Configurations and Data
To remove mysql-client-8.0
configuration and data from Ubuntu 20.04 we can use the following command:
sudo apt-get -y purge mysql-client-8.0
Remove mysql-client-8.0 configuration, data, and all of its dependencies
We can use the following command to remove mysql-client-8.0
configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge mysql-client-8.0
References
Summary
In this tutorial we learn how to install mysql-client-8.0
package on Ubuntu 20.04 using different package management tools: apt
, apt-get
and aptitude
.