Aral Code

Getting Started Lesson 1 of 13

Introduction to MySQL

What MySQL is, how it relates to SQL, what a database server is, MySQL vs MariaDB, and where MySQL is used.

SQL is a language. MySQL is a program, a database server, that understands SQL, stores your data safely on disk, and answers queries from many users and apps at the same time.

A database server

Unlike a spreadsheet file that one person opens, MySQL runs in the background as a server. Programs connect to it, send SQL, and receive results:

PHP website ──┐
Mobile app  ──┼──▶  MySQL server  ──▶  data files on disk
phpMyAdmin  ──┘     (port 3306)

Hundreds of students can use an online enrollment system at once, and MySQL keeps all their changes organized and consistent.

A short history

  • 1995: MySQL is released by a Swedish company, MySQL AB. It's named after co-founder Michael Widenius's daughter, My.
  • 2008–2010: Sun Microsystems buys MySQL, then Oracle buys Sun.
  • 2009: worried about Oracle, the original creator starts MariaDB, a community copy of MySQL (named after his younger daughter, Maria).

MySQL Community Edition is still free and open source. MariaDB is almost identical for everyday use; in fact, XAMPP ships MariaDB, though the control panel still calls it "MySQL". Everything in this course works in both.

Where is MySQL used?

  • WordPress: every WordPress site stores posts, pages and users in MySQL.
  • Online stores: WooCommerce, Magento, many local shops.
  • School and business systems: enrollment, grading, payroll, inventory and point-of-sale systems, many built with PHP and MySQL.
  • Big tech: Facebook, YouTube and Booking.com have used MySQL at enormous scale.

Try a query

The live editor on this site runs SQLite in your browser, which shares most SQL with MySQL. Lessons point out where MySQL differs.

SQL Products running low
SELECT name, stock
FROM products
WHERE stock < 30
ORDER BY stock;

MySQL vs other databases

DatabaseTypeTypical use
MySQL / MariaDBServer, freeWebsites, PHP apps, small to huge systems
PostgreSQLServer, freeComplex data, advanced features
SQLiteA single file, no serverPhones, small apps, this site's live editor
SQL Server, OracleServer, commercialLarge companies, banks

Key terms

  • Server: the running MySQL program.
  • Client: any program that connects to it (phpMyAdmin, the mysql command, your PHP code).
  • Database (also called a schema): a named collection of tables, like school or store.
  • Table, row, column: as in the SQL course.

Quick Quiz

Check what you learned. Walang grade ito, practice lang. 🙂

1. What is MySQL?
2. What is MariaDB?
3. Which popular website platform stores its data in MySQL?
4. What is a "client" in MySQL terms?

By Sir Reyel · Last updated 2026-12-04