What MySQL is
MySQL is a relational database management system (RDBMS): a program that stores data in tables, keeps it secure and finds it quickly on request. You communicate with the database using the SQL language. MySQL was created in Sweden in 1995, is now owned by Oracle and is available both as open source and in paid enterprise editions.
What a relational database is
A database is an organised collection of data. In a relational database, the data is split into tables that are linked to each other. Take a customers table and an orders table: each order refers to the customer who placed it. Nothing is stored twice, and the data is easy to combine.
Where MySQL is used
- WordPress: all posts, pages, users and settings are stored in a MySQL or MariaDB database.
- Online shops: WooCommerce, PrestaShop, Magento and others store products and orders in MySQL.
- Web applications: booking systems, client portals, internal tools.
- Large services: Facebook, YouTube, Wikipedia and Booking have used MySQL in the past or still do.
Together with Linux, the Apache web server and the PHP language, it forms the well-known LAMP stack that runs a large part of the internet.
Why MySQL is so popular
- Free and supported by almost every hosting provider.
- Fast and stable under the usual load of websites and online shops.
- Easy to manage, for example with phpMyAdmin in the browser.
- A huge community: you can find guides and answers for everything.
MySQL and website performance
A slow WordPress site or online shop is often held back not by hosting but by a bloated database: old post revisions, leftover data from uninstalled plugins, missing indexes or badly written queries. Cleaning up and optimising the database can make a website noticeably faster. The database also needs regular backups.
MySQL vs MariaDB and PostgreSQL
MariaDB is a fork of MySQL by its original authors and, for a typical website, is almost interchangeable with it. PostgreSQL is a separate system with more advanced features, suited to more demanding applications.
Faster database, faster website
I clean up and optimise your website's database as part of website speed optimisation. For new systems, I design the database structure as part of web applications.