{"id":5615,"date":"2020-04-28T00:23:22","date_gmt":"2020-04-27T21:23:22","guid":{"rendered":"https:\/\/kifarunix.com\/?p=5615"},"modified":"2024-03-14T20:09:44","modified_gmt":"2024-03-14T17:09:44","slug":"install-mysql-8-on-ubuntu-20-04","status":"publish","type":"post","link":"https:\/\/kifarunix.com\/install-mysql-8-on-ubuntu-20-04\/","title":{"rendered":"Install MySQL 8 on Ubuntu 20.04"},"content":{"rendered":"\n

This guide provides a step-wise tutorial on how to install MySQL 8 on Ubuntu 20.04. MySQL<\/a> is a fast, stable and true multi-user, multi-threaded SQL database server with its main goals being speed, robustness and ease of use. To see a comprehensive description of the features offered by MySQL 8, navigate to MySQL 8 Reference Manual<\/a>.<\/p>\n\n\n\n

Installing MySQL 8 on Ubuntu 20.04<\/h2>\n\n\n\n

Ubuntu 20.04 ships with MySQL 8 on its default repositories.<\/p>\n\n\n\n

apt show mysql-server<\/code><\/pre>\n\n\n\n
Package: mysql-server\nVersion: 8.0.19-0ubuntu5<\/strong>\nPriority: optional\nSection: database\nSource: mysql-8.0<\/strong>\nOrigin: Ubuntu\nMaintainer: Ubuntu Developers ubuntu-devel-discuss@lists.ubuntu.com<\/a>\nOriginal-Maintainer: Debian MySQL Maintainers pkg-mysql-maint@lists.alioth.debian.org<\/a>\nBugs: https:\/\/bugs.launchpad.net\/ubuntu\/+filebug\nInstalled-Size: 110 kB\nDepends: mysql-server-8.0\nHomepage: http:\/\/dev.mysql.com\/\nTask: lamp-server\nDownload-Size: 9,544 B\nAPT-Sources: http:\/\/us.archive.ubuntu.com\/ubuntu focal\/main amd64 Packages<\/strong>\n<\/code><\/pre>\n\n\n\n

This makes the installation of MySQL 8 a seamless task.<\/p>\n\n\n\n

Before you can proceed, update and upgrade your system packages.<\/p>\n\n\n\n

apt update\napt upgrade<\/code><\/pre>\n\n\n\n

Next, install MySQL 8 by executing the command below;<\/p>\n\n\n\n

apt install mysql-server<\/code><\/pre>\n\n\n\n

The command installs MySQL 8 and all required package dependency.<\/p>\n\n\n\n

Secure MySQL 8 Installation on Ubuntu 20.04<\/h3>\n\n\n\n

MySQL ships with a security script called mysql_secure_installation<\/code> that enables you to implement initial security of MySQL installation in the following ways: <\/p>\n\n\n\n