Installing MariaDB database

Most OpenStack projects and their components keep their persistent data and objects' status in a database. MySQL and MariaDB are the most used and tested databases with OpenStack. In our case, and in the most commonly deployed layout, controller-Neutron-compute, the database is installed on the controller node.

Run the following commands on the controller node!

How to do it...

Proceed with the following steps:

  1. Install MaridaDB packages as follows:
    [root@controller ~]# yum install mariadb-galera-server
    

    Yum might deploy additional packages after resolving MariaDB's dependencies. A successful installation should output as follows:

    Installed: mariadb-galera-server.x86_64 1:5.5.37-7.el7ost Dependency Installed: mariadb.x86_64 ...

Get Production Ready OpenStack - Recipes for Successful Environments now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.