Install MariaDB database on CentOS7
MariaDB is a branch of MySQL. RHEL and its derivative versions have been migrated from MySQL to MariaDB. This is a mainstream database management system and a required tool. No matter what type of server you are configuring, you will need it either later or later. Install MariaDB on CentOS with minimal installation, as shown below:
# Yum install mariadb-server mariadb
Install MariaDB Database
Start MariaDB and configure it to automatically start when it is started.
# Systemctl start mariadb. service
# Systemctl enable mariadb. service
Allow mysql (mariadb) services to use the firewall (LCTT; if you need to connect to the database on another server, try to use the internal network instead of exposing the database service to the public internet .)
# Firewall-cmd-add-service = mysql
Now it is time to ensure the security of the MariaDB server (LCTT Note: This step is mainly to set the mysql management password ).
#/Usr/bin/mysql_secure_installation
Protect MariaDB Databases