MariaDB installation in Ubuntu 22.04
The following guide describes the installation and initial configuration of MariaDB in Ubuntu 22.04
We will do the whole thing in a few minutes through the console.
We run the terminal and first update the packages:
| 1 | apt update -y | 
the next step is installation, Ubuntu has ready-made MariaDB packages in its repos
| 1 | apt-get install mariadb-server mariadb-client -y | 
We activate the service in the system:
| 1 | systemctl start mariadb | 
| 1 | systemctl enable mariadb | 
Now we will do the initial configuration. The following guide describes how to install the Webmin panel on a Debian system:
| 1 | mysql_secure_installation | 
I answer questions:
| 1 | Enter current password for root (enter for none):  | 
We click enter, we do not have the mysql root password yet.
| 1 | Switch to unix_socket authentication [Y/n] Y | 
We set the authorization method by clicking Y
| 1 | Change the root password? [Y/n] Y | 
We change the root password by confirming Y
| 1 2 | New password:  Re-enter new password:  | 
We enter the new root password and repeat it.
| 1 | Remove anonymous users? [Y/n] Y | 
We delete all anonymous users with the Y key
| 1 | Disallow root login remotely? [Y/n] Y | 
We disable remote login to the root account
| 1 | Remove test database and access to it? [Y/n] Y | 
Delete the test database with the Y key
| 1 | Reload privilege tables now? [Y/n] Y | 
We are overcharging the permissions .
That's all.






