How to install MySQL on a CentOS 7 VPS | Linux Today

How to install MySQL on a CentOS 7 VPS

Written By
Web Webster
Web Webster
May 8, 2015

In this tutorial we will explain how to install MySQL on a CentOS VPS.
What is MySQL?

MySQL is a popular open source relational database. The popularity of MySQL means there is an abundance of information online and well documented client libraries available. One important thing that you will need to know is that by default Centos 7 comes with MariaDB instead of MySQL. MariaDB is an open source software equivalent to MySQL, but at this end if for any reason you want to stick with MySQL???

???let’s start with the installation.

First thing you need to do is to log in to your CentOS 7 VPS via SSH. Once you are in you will need to add the official YUM repository provided by Oracle which will provide you with the latest MySQL version available. The YUM repository configuration can be downloaded from the MySQL website. So, start your web browser and enter:

Web Webster

Web Webster

Web Webster has more than 20 years of writing and editorial experience in the tech sector. He’s written and edited news, demand generation, user-focused, and thought leadership content for business software solutions, consumer tech, and Linux Today, he edits and writes for a portfolio of tech industry news and analysis websites including webopedia.com, and DatabaseJournal.com.

Linux Today Logo

LinuxToday is a trusted, contributor-driven news resource supporting all types of Linux users. Our thriving international community engages with us through social media and frequent content contributions aimed at solving problems ranging from personal computing to enterprise-level IT operations. LinuxToday serves as a home for a community that struggles to find comparable information elsewhere on the web.

Property of TechnologyAdvice. © 2026 TechnologyAdvice. All Rights Reserved

Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.