To install MariaDB on RHEL 8, you can use the following steps:
sudo dnf install https://downloads.mariadb.com/MariaDB/mariadb_repo_setupSource:www.lautturi.com
This will add the MariaDB repository to your system and enable it.
sudo dnf install mariadb-server
This will install the latest version of MariaDB available in the repository.
sudo systemctl start mariadb sudo systemctl enable mariadb
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.
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.