Installation and security of the MariaDB database server on Ubuntu 22.04

The following guide describes how to install the MariaDB database server on Ubuntu 22.04

We will do the whole thing in a few minutes using the console

We start the terminal and issue commands:

We update packages and our system:

The next step is to install the necessary packages:

We install the MariaDB server

We add the service to the autostart:

We make the initial security

In the console, issue the command:

And we answer the questions as in the screenshot:

Log in to mysqla by issuing a command:

Create an administrative user, which uses password authentication:

We log in to MariaDB

sudo mariadb

Then create a new user with root privileges and password-based access. remember, to change the username and password according to your preferences:

We are overcharging the permissions:

We are exiting the database console:

How useful this post was?

Click on the star, to evaluate it!

Average grade / 5. number of votes:

So far, no votes! Be the first to rate this post.