Chapter 8. Introduction to MySQL
With well over 10 million installations, MySQL is probably the most popular database management system for web servers. Developed in the mid-1990s, itâs now a mature technology that powers many of todayâs most-visited internet destinations.
One reason for its success is that, like PHP, itâs free to use. But itâs also extremely powerful and exceptionally fast. MySQL is also highly scalable, which means that it can grow with your website; the latest benchmarks are kept up to date online.
MySQL Basics
A database is a structured collection of records or data stored in a computer system and organized in such a way that it can be quickly searched and information can be rapidly retrieved.
The SQL in MySQL stands for Structured Query Language. This language is loosely based on English and also used in other databases such as Oracle and Microsoft SQL Server. It is designed to allow simple requests from a database via commands such as:
SELECT
title
FROM
publications
WHERE
author
=
'Charles Dickens'
;
A MySQL database contains one or more tables, each of which contains records or rows. Within these rows are various columns or fields that contain the data itself. Table 8-1 shows the contents of an example database of five publications, detailing the author, title, type, and year of publication.
Author | Title | Type | Year |
---|---|---|---|
Mark Twain | The Adventures of Tom Sawyer | Fiction | 1876 |
Jane Austen | Pride and Prejudice ... |
Get Learning PHP, MySQL & JavaScript, 6th Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.