How To Install MySQL

[MySQL](https://www.mysql.com/) is an open-source database management system, commonly installed as part of the popular [LAMP](https://www.digitalocean.com/community/tutorials/how-to-install-linux-apache-mysql-php-lamp-stack-on-ubuntu-20-04) or [LEMP](https://www.digitalocean.com/community/tutorials/how-to-install-linux-nginx-mysql-php-lemp-stack-on-centos-8) stack. It implements the [relational model](https://en.wikipedia.org/wiki/Relational_model) and [SQL](https://en.wikipedia.org/wiki/SQL) to manage and query data. This tutorial explains how to install MySQL on your server. Choose your operating system below to get started.

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.