Md Obydullah Follow I'm Md Obydullah. I build open-source projects and write about Laravel, Linux server, modern JavaScript and web development.

Install MySQL (MariaDB) on CentOS 7

Published on April 10, 2019 20 sec read

Step 1 : Login to Server

At first, we need to login to our server via SSH. Open your terminal and run this command:

ssh [email protected] -p PORT

Step 2 : Install MariaDB

Run this command to install MariaDB:

sudo yum install mariadb mariadb-server

Start MariaDB server:

sudo systemctl start mariadb

Enable MariaDB to start at boot:

sudo systemctl enable mariadb

Run the mysql_secure_installation the script which will perform several security-related tasks:

sudo mysql_secure_installation

Step 3 : Useful Commands

sudo systemctl stop mariadb
sudo systemctl restart mariadb
sudo systemctl reload mariadb
sudo systemctl status mariadb

You're welcome to suggest any article to write!

Md Obydullah Follow I'm Md Obydullah. I build open-source projects and write about Laravel, Linux server, modern JavaScript and web development.

Leave a Reply

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