Install MariaDB database on CentOS7

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.