To install MariaDB, a popular open-source database management system, on CentOS 8, follow these steps:
sudo dnf install https://downloads.mariadb.com/MariaDB/mariadb_repo_setup
sudo dnf install mariadb-server
This will install the MariaDB server and client programs, as well as any dependencies required.
sudo systemctl enable mariadb
sudo systemctl start mariadb
sudo mysql_secure_installation
This will prompt you to set a root password for MariaDB, as well as to remove anonymous user accounts and disallow remote root login. Follow the prompts to complete the security configuration.
mysql -u root -p
Enter the root password you set during the security configuration to log in. From the MariaDB command line, you can create and manage databases, users, and other objects.
That's it! You now have MariaDB installed and configured on your CentOS 8 system. You can use it to store and manage data for your applications.