MySQL is a widespread database management system (DBMS) characterized by open source code. Recently, more and more often webmasters, owners of online stores, blog sites choose PostgreSQL and a fork of MySQL - MariaDB, which was created by the developer of MySQL. Despite this, the DBMS itself called MySQL is still popular. Next, let's see how to install MySQL in Ubuntu 22.04, as well as how to perform the initial configuration, so that you can work with the database.
To install the DBMS in Ubuntu 22.04, you need to choose MySQL 8. It is available for installation in this version of the OS. version 5.7 is considered already obsolete. Therefore, you will not be able to install it: packages for it were simply not built. You can also install MySQL 8 from the official repositories or from the developer repository. Let's see how to do it using the official repository.
To install DBMS from official repositories, first of all, update the package lists in the system:
sudo apt update
Next, you will be left to run the command to install MySQL server and client:
sudo apt install mysql-server mysql-client
As you can see, everything is easy and simple. Now you can work with the DBMS and interact with databases.