The world's most popular open source database
open coreGPL-2.0-onlyself-hostablefree
MySQL is a relational database server developed by Oracle. The free Community Edition, under the GPL, has transactional InnoDB tables, a pluggable storage engine architecture, replication, Group Replication and InnoDB Cluster with MySQL Router for high availability, partitioning, stored procedures, triggers and views, and a Document Store for JSON documents through MySQL Shell. Oracle sells MySQL Enterprise Edition, which adds hot backups, a thread pool, transparent data encryption, data masking, a SQL firewall, auditing and 24x7 support, and runs MySQL HeatWave, a managed MySQL service on OCI and AWS with built-in analytics and machine learning. MariaDB is a community-developed fork started by members of the original MySQL team.
Ways to install
Package managers
Problems it solves
- I need a free SQL database for a PHP or WordPress site that every host supports
- which relational database do most hosting providers and tutorials assume
- set up a read replica so reporting queries stop slowing down the main database
- automatic failover when my primary database server dies
- store orders and customers with real transactions so a half-finished checkout never saves
- our app was written for MySQL and we need a server that stays compatible with it
- take a full backup of a live database without locking the tables
- audit who ran which queries against the customer database for compliance
- block SQL injection at the database level, not just in the app
- encrypt the database files on disk without changing the application
- a managed MySQL service that can also run analytics on the same data without an ETL pipeline
- run the same database locally in Docker that production uses
Features
- InnoDB transactional storage engine
- pluggable storage engines (InnoDB, NDB, MyISAM)
- replication and Group Replication
- InnoDB Cluster and MySQL Router
- transactional data dictionary with atomic DDL
- partitioning
- stored procedures, triggers and views
- Document Store (X Protocol, XDev API)
- Performance Schema
- MySQL Shell and MySQL Workbench
View 1 more
- NDB Cluster
Ways to run it
MySQL Community Edition
free
Not included
- MySQL Enterprise Backup (hot, incremental and partial backups)
- thread pool
- transparent data encryption and data masking
- MySQL Enterprise Firewall and Audit
- PAM and Windows Active Directory authentication
- JavaScript stored programs
- support from Oracle
You arrange
- servers or VMs
- backups (mysqldump or a third-party tool) and restore tests
- replication or InnoDB Cluster setup for failover
- monitoring
- security hardening, encryption and upgrades
MySQL Enterprise Edition
subscription through the Oracle Store or MySQL sales; no price on mysql.com
Only in this edition
- hot full, incremental and partial backups with point-in-time recovery
- thread pool
- JavaScript stored programs and functions
- PAM and Windows Active Directory authentication
- transparent data encryption and a cryptography toolkit
- data masking and de-identification
- MySQL Enterprise Firewall
- policy-based auditing
- 24x7 support from MySQL engineers
You arrange
- servers or VMs
- an Oracle subscription for each server
- replication and failover setup
- upgrades
MySQL HeatWave
billed by usage; price lists for HeatWave on OCI and on AWS on Oracle's site
Only in this edition
- fully managed MySQL built on Enterprise Edition
- runs on OCI and AWS
- in-memory analytics on transactional data without ETL
- Lakehouse queries over files in object storage
- AutoML, in-database language models and a vector store
Capabilities
| Has a command line tool | plan not known |
|---|---|
| Takes plugins | plan not known |
Forks
- MariaDB Server The innovative open source database. Its own project.
Alternatives
The same job
These do what MySQL does.
- Amazon RDS Easy to manage relational databases optimized for total cost of ownership
- PlanetScale The world's fastest and most scalable cloud databases
- MariaDB Server The innovative open source database
- PostgreSQL A powerful, open source object-relational database system
- SQLite Small. Fast. Reliable. Choose any three.
- CockroachDB The cloud native, distributed SQL database designed for high availability, effortless scale, and control over data placement
