SlideShare a Scribd company logo
How To Install MySQL / MariaDB Server on CentOS 7
i | P a g e
Contents
Overview.......................................................................................................................................................1
Applies To......................................................................................................................................................1
Install MariaDB Server ..................................................................................................................................1
Install MariaDB Server – Download..........................................................................................................1
Install MariaDB Server – Installation Status..............................................................................................2
Install MariaDB Server – Package Listing..................................................................................................2
Install MariaDB Server – Start Daemon ....................................................................................................3
Install MariaDB Server – Status Daemon..................................................................................................3
Install MariaDB Server – Enable Daemon.................................................................................................4
Install MariaDB Server – Connect MySQL.................................................................................................4
How To Install MySQL / MariaDB Server on CentOS 7
1 | P a g e
Overview
The purpose of this guide is to install MySQL database server on CentOS 7.
Applies To
CentOS 7, RHEL 7
Install MariaDB Server
First step that we need to perform is to install MariaDB Server, which is inline replacement for MySQL
Server. To start the installation of the mariadb-server.
yum install mariadb-server mariadb
Install MariaDB Server – Download
After package dependency is resolved, accept the package download and installation.
How To Install MySQL / MariaDB Server on CentOS 7
2 | P a g e
Install MariaDB Server – Installation Status
After the package is downloaded, installation will be completed.
Install MariaDB Server – Package Listing
Run the rpm query package list; run the below command.
rpm -qa | grep maria
How To Install MySQL / MariaDB Server on CentOS 7
3 | P a g e
Install MariaDB Server – Start Daemon
Start the “mariadb” server daemon, run the below command.
systemctl start mariadb
Install MariaDB Server – Status Daemon
Check the status “mariadb” server daemon, run the below command, if the daemon is running “Active:
active (running)”.
systemctl status mariadb
How To Install MySQL / MariaDB Server on CentOS 7
4 | P a g e
Install MariaDB Server – Enable Daemon
After installation the init script “openfire” will be copied to the /etc/init.d/ folder. To enable in it in specific
run levels run the below command, default in runlevel 345 it will turn on when you enable the service.
systemctl enable mariadb
Install MariaDB Server – Connect MySQL
Login to the server, run the command “mysql” . You will be connected to the server.
mysql

More Related Content

PDF
How to Upgrade Openfire on CentOS 7
PDF
TFTP Installation Configuration Guide
PDF
Install VMWare Tools CentOS 7
PDF
How To Protect SSH Access with Fail2Ban on RHEL 7
PDF
Nginx bind() to 0.0.0.0:9080 failed
PDF
How To Install and Configure VSFTPD on RHEL 7 or CentOS 7
PDF
How To Install OpenFire in CentOS 7
PDF
How To Install and Configure Apache SSL on CentOS 7
How to Upgrade Openfire on CentOS 7
TFTP Installation Configuration Guide
Install VMWare Tools CentOS 7
How To Protect SSH Access with Fail2Ban on RHEL 7
Nginx bind() to 0.0.0.0:9080 failed
How To Install and Configure VSFTPD on RHEL 7 or CentOS 7
How To Install OpenFire in CentOS 7
How To Install and Configure Apache SSL on CentOS 7

What's hot (20)

PDF
How To Install and Configure Screen on CentOS 7
PDF
How To Configure Amazon EC2 Load Balancer
PDF
How To Install and Configure AWS CLI on RHEL 7
PDF
How To Configure Apache VirtualHost on RHEL 7 on AWS
PDF
How To Configure Nginx Load Balancer on CentOS 7
PDF
How To Configure SNMP Logging on RHEL 7
PDF
How to Install Configure and Use sysstat utils on RHEL 7
PDF
Configure Run Levels RHEL 7 or CentOS 7
PDF
How To Configure FirewallD on RHEL 7 or CentOS 7
PDF
How to Change Hostname in CentOS 7 or RHEL 7
PDF
How To Install CentOS 7
PDF
How To Install and Configure SUDO on RHEL 7
PDF
Install and Configure WordPress in AWS on RHEL 7 or CentOS 7
PDF
How To Find Package Installation Date on RHEL 7
PDF
How To Install and Configure SNMP on RHEL 7 or CentOS 7
PDF
How To Install and Configure Open SSH Server on Ubuntu
PDF
How To Install and Use ABRT CLI on RHEL 7
PDF
How To Install and Configure Splunk on RHEL 7 in AWS
PDF
Installation CentOS 6.3
PDF
How to install and configure firewall on ubuntu os
How To Install and Configure Screen on CentOS 7
How To Configure Amazon EC2 Load Balancer
How To Install and Configure AWS CLI on RHEL 7
How To Configure Apache VirtualHost on RHEL 7 on AWS
How To Configure Nginx Load Balancer on CentOS 7
How To Configure SNMP Logging on RHEL 7
How to Install Configure and Use sysstat utils on RHEL 7
Configure Run Levels RHEL 7 or CentOS 7
How To Configure FirewallD on RHEL 7 or CentOS 7
How to Change Hostname in CentOS 7 or RHEL 7
How To Install CentOS 7
How To Install and Configure SUDO on RHEL 7
Install and Configure WordPress in AWS on RHEL 7 or CentOS 7
How To Find Package Installation Date on RHEL 7
How To Install and Configure SNMP on RHEL 7 or CentOS 7
How To Install and Configure Open SSH Server on Ubuntu
How To Install and Use ABRT CLI on RHEL 7
How To Install and Configure Splunk on RHEL 7 in AWS
Installation CentOS 6.3
How to install and configure firewall on ubuntu os
Ad

Viewers also liked (15)

PDF
Linux Basic Administration Commands Guide
PDF
Batch script for nslookup range of ip address
PDF
How To Create RDS Database for WordPress in AWS on RHEL 7 or CentOS 7
PDF
LSOF Command Usage on RHEL 7
PDF
How to Install and Configure Cacti on Linux
PDF
DNF Failed To Open Cache
PDF
How To Add DVD ISO to YUM Repository in CentOS 6
DOCX
How to Configure Amazon AWS EC2 Elastic IP Address
PDF
How To Audit Server Login and Shutdown or Reboot Activity
PDF
How To Create EBS Snapshot and Restore EBS Snapshot – Linux Instance
PDF
How To Configure Amazon EC2 Security Groups
PDF
File Space Usage Information and EMail Report - Shell Script
PDF
Connect Amazon EC2 Linux Instance
PDF
How To Configure VNC Server on CentOS 7
PDF
Bash Script Disk Space Utilization Report and EMail
Linux Basic Administration Commands Guide
Batch script for nslookup range of ip address
How To Create RDS Database for WordPress in AWS on RHEL 7 or CentOS 7
LSOF Command Usage on RHEL 7
How to Install and Configure Cacti on Linux
DNF Failed To Open Cache
How To Add DVD ISO to YUM Repository in CentOS 6
How to Configure Amazon AWS EC2 Elastic IP Address
How To Audit Server Login and Shutdown or Reboot Activity
How To Create EBS Snapshot and Restore EBS Snapshot – Linux Instance
How To Configure Amazon EC2 Security Groups
File Space Usage Information and EMail Report - Shell Script
Connect Amazon EC2 Linux Instance
How To Configure VNC Server on CentOS 7
Bash Script Disk Space Utilization Report and EMail
Ad

Similar to How to Install MariaDB Server or MySQL Server on CentOS 7 (20)

PDF
Maria db
PDF
How to Install and Configure MariaDB on Debian 12.pdf
PDF
DebConf 2020: What’s New in MariaDB Server 10.5 and Galera 4?
PPTX
How to replace my sql with mariadb in cpanel
PPTX
How to replace my sql with mariadb in cpanel
PDF
Meet MariaDB Server 10.1 London MySQL meetup December 2015
PDF
L203326 intro-maria db-techu2020-v9
PDF
How to Install MariaDB on Ubuntu 2404.pdf
PPS
Linux17 MySQL_installation
PPTX
Build MySQL virtual enviroment
PDF
MySQL for Beginners - part 1
PDF
MySQL features missing in MariaDB Server
PDF
MariaDB in Debian and Ubuntu: The next million users
PDF
Differences between MariaDB 10.3 & MySQL 8.0
PDF
MariaDB 10: The Complete Tutorial
PDF
The Complete MariaDB Server tutorial
PDF
The Complete MariaDB Server Tutorial - Percona Live 2015
PDF
MariaDB: in-depth (hands on training in Seoul)
DOCX
PPTX
Install MariaDB on IBM i - Tips, troubleshooting, and more
Maria db
How to Install and Configure MariaDB on Debian 12.pdf
DebConf 2020: What’s New in MariaDB Server 10.5 and Galera 4?
How to replace my sql with mariadb in cpanel
How to replace my sql with mariadb in cpanel
Meet MariaDB Server 10.1 London MySQL meetup December 2015
L203326 intro-maria db-techu2020-v9
How to Install MariaDB on Ubuntu 2404.pdf
Linux17 MySQL_installation
Build MySQL virtual enviroment
MySQL for Beginners - part 1
MySQL features missing in MariaDB Server
MariaDB in Debian and Ubuntu: The next million users
Differences between MariaDB 10.3 & MySQL 8.0
MariaDB 10: The Complete Tutorial
The Complete MariaDB Server tutorial
The Complete MariaDB Server Tutorial - Percona Live 2015
MariaDB: in-depth (hands on training in Seoul)
Install MariaDB on IBM i - Tips, troubleshooting, and more

More from VCP Muthukrishna (20)

PDF
How to Fix Duplicate Packages in YUM on CentOS 7
PDF
How To Install and Configure GNome on CentOS 7
PDF
How To Connect to Active Directory User Validation
PDF
How To Connect To Active Directory PowerShell
PDF
How To List Files on Remote Server - PowerShell
PDF
How To List Files and Display In HTML Format
PDF
How To Check and Delete a File via PowerShell
PDF
Zimbra Troubleshooting - Mails not being Delivered or Deferred or Connection ...
PDF
How To Setup SSH Keys on CentOS 7
PDF
Windows PowerShell Basics - How To List PSDrive Info
PDF
How To List Nginx Modules Installed / Complied on CentOS 7
PDF
Windows PowerShell Basics – How To Create powershell for loop
PDF
How To Construct IF and Else Conditional Statements
PDF
How To Create PowerShell Function Mandatory Parameter and Optional Parameter
PDF
How To Create Power Shell Function Mandatory Parameter Value
PDF
How To Create PowerShell Function
PDF
How To Disable IE Enhanced Security Windows PowerShell
PDF
How To Check IE Enhanced Security Is Enabled Windows PowerShell
PDF
How To Install and Configure Salt Master on Ubuntu
PDF
How To Reset root Password on CentOS 7
How to Fix Duplicate Packages in YUM on CentOS 7
How To Install and Configure GNome on CentOS 7
How To Connect to Active Directory User Validation
How To Connect To Active Directory PowerShell
How To List Files on Remote Server - PowerShell
How To List Files and Display In HTML Format
How To Check and Delete a File via PowerShell
Zimbra Troubleshooting - Mails not being Delivered or Deferred or Connection ...
How To Setup SSH Keys on CentOS 7
Windows PowerShell Basics - How To List PSDrive Info
How To List Nginx Modules Installed / Complied on CentOS 7
Windows PowerShell Basics – How To Create powershell for loop
How To Construct IF and Else Conditional Statements
How To Create PowerShell Function Mandatory Parameter and Optional Parameter
How To Create Power Shell Function Mandatory Parameter Value
How To Create PowerShell Function
How To Disable IE Enhanced Security Windows PowerShell
How To Check IE Enhanced Security Is Enabled Windows PowerShell
How To Install and Configure Salt Master on Ubuntu
How To Reset root Password on CentOS 7

Recently uploaded (20)

PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PPTX
Programs and apps: productivity, graphics, security and other tools
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PDF
A comparative analysis of optical character recognition models for extracting...
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PDF
MIND Revenue Release Quarter 2 2025 Press Release
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PPTX
Digital-Transformation-Roadmap-for-Companies.pptx
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PDF
NewMind AI Weekly Chronicles - August'25-Week II
PDF
Empathic Computing: Creating Shared Understanding
PDF
cuic standard and advanced reporting.pdf
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PDF
Review of recent advances in non-invasive hemoglobin estimation
PDF
Assigned Numbers - 2025 - Bluetooth® Document
PPTX
Cloud computing and distributed systems.
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Programs and apps: productivity, graphics, security and other tools
20250228 LYD VKU AI Blended-Learning.pptx
Agricultural_Statistics_at_a_Glance_2022_0.pdf
A comparative analysis of optical character recognition models for extracting...
Chapter 3 Spatial Domain Image Processing.pdf
MIND Revenue Release Quarter 2 2025 Press Release
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Digital-Transformation-Roadmap-for-Companies.pptx
The Rise and Fall of 3GPP – Time for a Sabbatical?
NewMind AI Weekly Chronicles - August'25-Week II
Empathic Computing: Creating Shared Understanding
cuic standard and advanced reporting.pdf
Reach Out and Touch Someone: Haptics and Empathic Computing
Review of recent advances in non-invasive hemoglobin estimation
Assigned Numbers - 2025 - Bluetooth® Document
Cloud computing and distributed systems.

How to Install MariaDB Server or MySQL Server on CentOS 7

  • 1. How To Install MySQL / MariaDB Server on CentOS 7 i | P a g e Contents Overview.......................................................................................................................................................1 Applies To......................................................................................................................................................1 Install MariaDB Server ..................................................................................................................................1 Install MariaDB Server – Download..........................................................................................................1 Install MariaDB Server – Installation Status..............................................................................................2 Install MariaDB Server – Package Listing..................................................................................................2 Install MariaDB Server – Start Daemon ....................................................................................................3 Install MariaDB Server – Status Daemon..................................................................................................3 Install MariaDB Server – Enable Daemon.................................................................................................4 Install MariaDB Server – Connect MySQL.................................................................................................4
  • 2. How To Install MySQL / MariaDB Server on CentOS 7 1 | P a g e Overview The purpose of this guide is to install MySQL database server on CentOS 7. Applies To CentOS 7, RHEL 7 Install MariaDB Server First step that we need to perform is to install MariaDB Server, which is inline replacement for MySQL Server. To start the installation of the mariadb-server. yum install mariadb-server mariadb Install MariaDB Server – Download After package dependency is resolved, accept the package download and installation.
  • 3. How To Install MySQL / MariaDB Server on CentOS 7 2 | P a g e Install MariaDB Server – Installation Status After the package is downloaded, installation will be completed. Install MariaDB Server – Package Listing Run the rpm query package list; run the below command. rpm -qa | grep maria
  • 4. How To Install MySQL / MariaDB Server on CentOS 7 3 | P a g e Install MariaDB Server – Start Daemon Start the “mariadb” server daemon, run the below command. systemctl start mariadb Install MariaDB Server – Status Daemon Check the status “mariadb” server daemon, run the below command, if the daemon is running “Active: active (running)”. systemctl status mariadb
  • 5. How To Install MySQL / MariaDB Server on CentOS 7 4 | P a g e Install MariaDB Server – Enable Daemon After installation the init script “openfire” will be copied to the /etc/init.d/ folder. To enable in it in specific run levels run the below command, default in runlevel 345 it will turn on when you enable the service. systemctl enable mariadb Install MariaDB Server – Connect MySQL Login to the server, run the command “mysql” . You will be connected to the server. mysql