MariaDB is an open source relational database management system, compatible with previous versions as well as being the binary MySQL replacement. Developed by some of the original creators of MySQL and by other people in the community. With the release of CentOS 7, MySQL was replaced by MariaDB as the default database system.
If, for any reason, you need to install MySQL, see the tutorial How to install MySQL on CentOS 7. If your application does not have specific requirements, you must continue with MariaDB, the default database system in CentOS 7.
We will see how to install the latest version of MariaDB on CentOS 7 using the official MariaDB repositories.
For the next installation we will need root user privileges, so we access our server and take the privileges of the root user with the sudo command.
Installation MariaDB 5.5 on CentOS 7
The MariaDB server version provided in the default CentOS repositories is version 5.5. However, this is not the latest version, but it is quite stable.
1. We install the MariaDB package using the yum package manager with the following command:
# sudo yum install mariadb-server
2. Once the installation is complete, we start the MariaDB service and to start it permanently on system startup, we execute the following commands:
# sudo systemctl start mariadb
# sudo systemctl enable mariadb
3. We check the status of our MariaDB database manager with the following command
# sudo systemctl status mariadb