MariaDB

-----

install the latest stable MariaDB version on CentOS 8

Copy

Adding the MariaDB repository

In order to install the latest stable MariaDB Community server on RHEL 8 or CentOS 8, you need to first add the MariaDB repository to yum.

To do so, you can use the following automation script provided by MariaDB:

Copy

Copy

Copy

With that, you are ready to install the latest stable MariaDB Community Server on your CentOS 8 server!

Installing the latest MariaDB version

With the MariaDB repository that we just added, dnf will install the stable MariaDB version.

To avoid any unexpected problems, first install the required dependencies:

Copy

After that install MariaDB from the new repository that we just added by specifying it with the --repo argument:

Copy

After that make sure to start MariaDB:

Copy

And also make sure that the service is enabled so that it starts automatically in case of a server reboot:

Copy

Finally, check if MariaDB is running:

Copy

With that you would have the latest MariaDB up and running!

Next make sure that you secure MariaDB as well!

Securing MariaDB

In order to secure your MariaDB server, you just need to run the following command:

Copy

Finally to check your version run the following command:

----