MariaDB is the default MySQL database installed on Red Hat Enterprise Linux 7. It is installed by running commands like "yum install mariadb" and then secured by running "mysql_secure_installation" to set the root password. Once installed and secured, databases and users can be created and the connection can be tested.