Install MariaDB 10 on CentOS/RHEL 7

Scenario: How to install MariaDB on CentOS/RHEL 7

Steps:
1) Create MariaDB 10 repository.
# vi /etc/yum.repos.d/MariaDB.repo

On CentOS 7

gpgcheck=1
On RHEL 7

2. Once MariaDB repository has been added, you can easily install it with yum command.
# yum install MariaDB-server MariaDB-client

3) Start the service and enable to start MariaDB on boot.
# systemctl start mariadb
# systemctl enable mariadb

4) Secure MariaDB in CentOS 7
# mysql_secure_installation

5) Check the installation.
Command to check MariaDB version:
# mysql -V

Command login to MariaDB
# mysql -u root -p

Reference:
https://www.tecmint.com/install-mariadb-in-centos-7/

Related posts:

Leave a Reply

Your email address will not be published. Required fields are marked *