Programster's Blog

Tutorials focusing on Linux, programming, and open-source

CentOS - Install MySQL Server

Initially this tutorial explained how to install MariaDB as a drop in replacement for MySQL as CentOS does not come with MySQL in its repositories and MariaDB really is a "drop in" replacement compatibility wise. I suggest you use that tutorial unless you have any specific reason why it has to be MySQL instead of MariaDB.

I think it's worth mentioning that Debian 9 is going a step further and installing MariaDB when you use the command sudo apt install mysql-server -y.

If I ever find out how to install MySQL server on CentOS9, then I'll be sure to put the instructions here.

Last updated: 25th January 2021
First published: 16th August 2018

This blog is created by Stuart Page

I'm a freelance web developer and technology consultant based in Surrey, UK, with over 10 years experience in web development, DevOps, Linux Administration, and IT solutions.

Need support with your infrastructure or web services?

Get in touch