MySQL Storage Engines

Is MySQL a DB or DBMS?

MySQL is a DBMS, meaning database management software. A database is the organized data. Learn how the two terms differ and how MySQL uses the word database.

On this page
  1. Short answer: MySQL is a DBMS
  2. What a database is
  3. What a DBMS does
  4. Why MySQL counts as a DBMS
  5. What “database” means inside MySQL
  6. Where SQL fits
  7. Common mix-ups
  8. The short version

Short answer: MySQL is a DBMS

MySQL is a DBMS, which stands for database management system. A DBMS is the software that creates, stores, secures and queries databases. A database is the organized collection of data itself. So MySQL is the software, and the data it holds is the database.

In everyday speech, people often say “MySQL database” to mean the MySQL server and the data it manages. That usage is common, and the context usually makes the meaning clear.

What a database is

A database is a structured collection of data. MySQL keeps its data in tables made of rows and columns, which makes it a relational DBMS, often written RDBMS. The structure lets programs read, add, change and remove data in a consistent way.

What a DBMS does

A DBMS handles the work around the data, so that applications do not have to:

  • Storing data on disk and holding working data in memory.
  • Running the queries and updates written in SQL.
  • Controlling who can connect and what each user is allowed to do.
  • Keeping data consistent when several users write at the same time.
  • Backing up data and recovering it after a failure.

Why MySQL counts as a DBMS

MySQL is a server program, called mysqld, that runs on a machine and waits for clients to connect. Client programs, such as the mysql command-line tool or an application, send SQL to the server. The server does the storing and the querying, and it sends results back. One server can hold many databases.

What “database” means inside MySQL

Inside MySQL, a database is a named container for tables, views and other objects. The word schema means the same thing: CREATE SCHEMA is a synonym for CREATE DATABASE. To list the databases on a server, run SHOW DATABASES;. A server holds several databases, and each database holds tables.

CREATE DATABASE shop;
USE shop;

Where SQL fits

SQL is the language. MySQL is one of several systems that understand it. Each system uses SQL with its own extras and differences, which is why a query can run in one system and need changes in another. The groups of SQL commands are described in “DBMS Languages List: DDL DML DCL and TCL”.

Common mix-ups

  • Other kinds of DBMS. Not every DBMS works like MySQL. “What are the four types of DBMS?” describes the main kinds.
  • MySQL and MariaDB. Both are DBMSs, and MariaDB began as a fork of MySQL. “Which is better, MySQL or MariaDB?” compares the two.
  • SQLite. SQLite is also a DBMS, but it runs inside the application as a file-based library instead of as a separate server.
  • Dialects. The SQL you write for MySQL may need changes for another system. “What are the different versions of SQL?” covers this.

The short version

MySQL is a DBMS, the software. A database is the organized data it manages. Inside MySQL, a database and a schema are the same thing: a named container for tables.

The complete guide to mysql storage engines

Types of MySQL Tables and Storage Engines
Read the guide

Keep exploring

Guides from other topics

All topics →