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 a MySQL developer, Despite this, the database itself called MySQL is still popular. Next, let's look at 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 a DBMS in Ubuntu 22.04, you need to select MySQL 8. It is available for installation in this OS version. version 5.7 is considered outdated. Therefore, you will not be able to install it: packages were simply not collected for it. You can also install MySQL 8 from the official repositories or from the developer repository. Let's look at how to do this using the official repository.
To install a DBMS from official repositories, first update the package lists in the system:
sudo apt update
Next, you will need to run the command to install the 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 DBMS and interact with databases.