How To Install MariaDB on RHEL 8

How To Install MariaDB on RHEL 8

To install MariaDB on RHEL 8, you can use the following steps:

  1. Enable the MariaDB repository:
sudo dnf install https://downloads.mariadb.com/MariaDB/mariadb_repo_setup
‮S‬ource:www.lautturi.com

This will add the MariaDB repository to your system and enable it.

  1. Install MariaDB:
sudo dnf install mariadb-server

This will install the latest version of MariaDB available in the repository.

  1. Start the MariaDB service and enable it to start automatically on boot:
sudo systemctl start mariadb
sudo systemctl enable mariadb
  1. Secure the MariaDB installation:
sudo mysql_secure_installation

This will guide you through the process of setting a root password and configuring some security options for your MariaDB installation.

  1. Test the installation:
mysql -u root -p

Enter the root password you set during the secure installation, and you should be able to log in to the MariaDB console.

Created Time:2017-10-28 21:38:52  Author:lautturi