Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

MySQL Tutorial

MySQL Tutorial

MySQL is the most popular relational database management system. In terms of WEB applications, MySQL is one of the best RDBMS (Relational Database Management System) applications.

In this tutorial, you will quickly grasp the basics of MySQL and easily use the MySQL database.

Online testing tool:https://www.jyshare.com/front-end/7768/。


What is a database?

A database is a repository that organizes, stores, and manages data according to a data structure.

Every database has one or more different APIs for creating, accessing, managing, searching, and replicating the stored data.

We can also store data in files, but reading and writing data in files is relatively slow.

Therefore, we now use a Relational Database Management System (RDBMS) to store and manage large volumes of data. A so-called relational database is a database based on the relational model, which uses mathematical concepts and methods such as set algebra to process data in the database.

The characteristics of RDBMS (Relational Database Management System) are:


RDBMS Terminology

Before we start learning the MySQL database, let's first understand some RDBMS terminology:

MySQL is a relational database (Relational Database Management System). This so-called "relational" can be understood as the concept of "tables"; a relational database consists of one or several tables, as shown in the figure:


MySQL Database

MySQL is a relational database management system developed by the Swedish company MySQL AB and currently owned by Oracle. MySQL is a relational database management system; a relational database stores data in different tables rather than putting all data in one large warehouse, which increases speed and improves flexibility.


What you should know before starting this tutorial?

Before starting this tutorial, you should have a basic knowledge of PHP and HTML and be able to apply them simply.

Many examples in this tutorial are related to the PHP language, and our examples are basically demonstrated using PHP.

If you do not yet know PHP, you can use the PHP Tutorialon this site to learn the language.