How to install MySQL on a CentOS 7 VPS

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: