EDUCBA

EDUCBA

MENUMENU
  • Free Tutorials
  • Free Courses
  • Certification Courses
  • 360+ Courses All in One Bundle
  • Login
Home Data Science Data Science Tutorials MySQL Tutorial Introduction to MySQL
Secondary Sidebar
MySQL Tutorial
  • Basic
    • MySQL floor
    • MySQL DESCRIBE table
    • MySQL encryption
    • Introduction to MySQL
    • Is SQL Server a Database?
    • What is MySQL
    • Is MySQL Programming Language
    • MySQL Server
    • MySQL AB
    • MySQL Community Server
    • How To Install MySQL
    • MySQL Versions
    • MySQL OpenSource
    • MySQL GUI Tools
    • MySQL Grant
    • MySQL Error 1064
    • MySQL Drop Database
    • MySQL not equal
    • MySQL SELECT INTO Variable
    • MySQL Commands
    • MySQL Operators
    • What is MySQL Schema
    • Wildcards in MySQL
    • MySQL Constraints
    • MySQL Administration
    • MySQL Data Type
    • MYSQL COMMIT
    • MySQL FORMAT
    • Timestamp to Date in MySQL
    • MySQL DATEDIFF
    • MySQL?Incremental Backup
    • MySQL JSON Data Type
    • MySQL ENUM
    • MySQL Default Port
    • Cheat Sheet MySQL
  • Queries
    • MySQL Queries
    • MySQL Query Commands
    • SELECT in MySQL
    • MySQL INSERT IGNORE
    • MySQL having
    • ORDER BY in MySQL
    • MySQL Cheat Sheet
    • MySQL ORDER BY Random
    • MySQL ORDER BY DESC
    • MySQL GROUP BY
    • MySQL GROUP BY Count
    • MySQL GROUP BY month
    • MySQL WHERE Clause
    • MySQL WITH
    • MySQL FETCH
    • MySQL DDL
    • MySQL DML
    • MySQL WHERE IN Array
    • MySQL Fetch Array
    • MySQL ISNULL
    • MySQL Index Types
    • Mysql? Export Schema
    • Amazon RDS for MySQL
    • MySQL greatest
  • Database
    • What is Data Modeling
    • What is Data Processing
    • DBMS Architecture
    • DBMS Keys
    • Careers in Database Administration
    • What is MySQL Database
    • MySQL Relational Database
    • How to Connect Database to MySQL
    • MySQL Database Repair
    • RDBMS Interview Questions
    • DBMS Interview Questions
  • Functions
    • MySQL Function
    • MySQL Aggregate Function
    • MySQL String functions
    • MySQL Date Functions
    • MySQL Window Functions
    • MySQL Math Functions
    • MySQL Boolean
    • Cursor in MySQL
    • Condition in MySQL
    • MySQL BETWEEN
    • Insert in MySQL
    • MySQL IFNULL()
    • MySQL TIMESTAMPDIFF()
    • MySQL COALESCE()
    • MySQL count()
    • MIN() in MySQL
    • MySQL Numeric
    • MySQL field()
    • MySQL FIND_IN_SET()
    • MySQL avg()
    • MySQL MAX() Function
    • MySQL BIN()
    • MySQL Concat
    • MySQL DECODE()
    • MySQL REGEXP_REPLACE()
    • MySQL Asynchronous
    • MySQL innodb_buffer_pool_size
    • MySQL key_buffer_size
    • MySQL TRUNCATE()
    • MySQL ROW_NUMBER()
    • NOT in MySQL
    • MySQL IN Operator
    • LIKE in MySQL
    • ANY in MySQL
    • MySQL NOT IN
    • MySQL CHECK Constraint
    • MySQL DISTINCT
    • MySQL ALL
    • MySQL Union
    • MySQL UNION ALL
    • MySQL EXISTS
    • MySQL ON DELETE CASCADE
    • MySQL REGEXP
    • MySQL Index
    • MySQL Add Index
    • MySQL REINDEX
    • MySQL UNIQUE INDEX
    • MySQL Clustered Index
    • MySQL? InnoDB Cluster
    • Table in MySQL
    • ALTER TABLE MySQL
    • MySQL Temporary Table
    • MySQL Clone Table
    • MySQL Repair Table
    • MySQL Lock Table
    • MySQL Optimize Table
    • TRUNCATE TABLE MySQL
    • MySQL Table Dump
    • MySQL Update Set
    • MySQL ALTER TABLE Add Column
    • MySQL RANK()
    • MySQL CTE
    • MySQL LAG()
    • MySQL GROUP_CONCAT()
    • MySQL EXTRACT()
    • MySQL REPLACE
    • MySQL AUTO_INCREMENT
    • MySQL SYSDATE()
    • MySQL NULLIF()
    • MySQL Substring
    • MySQL SUBSTRING_INDEX()
    • MySQL LOWERCASE
    • MySQL Row
    • MySQL NOW
    • MySQL CEIL
    • MySQL Alias
    • MySQL Trigger
    • MySQL SHOW Triggers
    • MySQL UPDATE Trigger
    • MySQL DELETE Trigger
    • MySQL AFTER UPDATE Trigger
    • MySQL Stored Procedure
    • ROLLUP in MySQL
    • MySQL? INSTR()
    • MySQL Subquery
    • MySQL Timestamp
    • MySQL? Hour()
    • MySQL MOD()
    • MySQL DATE_FORMAT()
    • ALTER Column in MySQL
    • MySQL Rename Column
    • MySQL Interval
    • MySQL CURDATE
    • MySQL BIT
    • MySQL Binlog
    • MySQL Average
    • MySQL TEXT
    • MySQL SHOW
    • MySQL Offset
    • MySQL Timezone
    • mysql_real_escape_string
    • MySQL Datetime
    • MySQL DATE_SUB()
    • MySQL FULLTEXT
    • MySQL DATE_ADD()
    • MySQL sum()
    • MySQL Merge
    • MySQL BigInt
    • MySQL ROUND
    • MySQL VARCHAR
    • MySQL Decimal
    • MySQL Limit
    • MySQL today()
    • MySQL WEEKDAY
    • MySQL Split
    • MySQL Create Function
    • MySQL BLOB
    • MySQL encode()
    • MySQL Primary Key
    • MySQL Foreign Key
    • Unique Key in MySQL
    • MySQL Drop Foreign Key
    • MySQL DROP TRIGGER
    • MYSQL Database
    • Delete Database MySQL
    • MySQL Root
    • MySQL Root Password
    • MySQL Client
    • MySQL Users
    • MySQL?User Permissions
    • MySQL add user
    • MySQL List User
    • MySQL Show Users
    • MySQL User Password
    • MySQL?Cardinality
    • MySQL Workbench
    • MySQL Backup
    • MySQL REVOKE
    • MySQL Dump
    • MySQL Cluster
    • MySQL Partitioning
    • MySQL Full Text Search
    • MySQL Admin Tool
    • MySQL Export Database
    • MySQL Export to CSV
  • Joins
    • Joins in MySQL
    • MySQL Outer Join
    • Left Outer Join in MySQL
    • MySQL Self Join
    • Natural Join in MySQL
    • MySQL DELETE JOIN
    • MySQL Update Join
    • MySQL Cross Join
  • Advanced
    • MySQL Formatter
    • MySQL TINYINT
    • MySQL Grant All Privileges
    • MySQL DROP TABLE
    • MySQL rename database
    • MySQL Flush Privileges
    • MySQL super Privilege
    • MySQL Character Set
    • MySQL Log File
    • MySQL Flush Log
    • Grant Privileges MySQL
    • MySQL WHILE LOOP
    • IF Statement in MySQL
    • MySQL CASE Statement
    • MySQL IF Function
    • MySQL IF EXISTS
    • MySQL UUID
    • Views in MySQL
    • MySQL Replication
    • MySQL Partition
    • Toad for MySQL
    • Navicat for MySQL
    • MySQL AES_Encrypt
    • MySQL Performance Tuning
    • MySQL Transaction
    • MySQL? sort_buffer_size
    • MySQL? Sync
    • MySQL? Query Cache
    • MySQL Collation
    • MySQL ODBC Driver
    • MySQL Partitioning
    • MySQL InnoDB
    • MySQL Float vs Decimal
    • MySQL Union vs Union All
  • Interview Questions
    • MySQL Interview Questions

Related Courses

MS SQL Certification Courses

Oracle Certification Courses

PL/SQL Certification Courses

Introduction to MySQL

By Afshan BanuAfshan Banu

Introduction-to-MySQL

Introduction to MySQL

MySQL is one of the popular relational database management systems; before proceeding to the explanation of the introduction to MySql, we will see the basic concepts related to the database.

The database is used to store the data; that is, the database is an application that stores the collection of related data. The other source of storing the data can be flat files as well, but the problem is to store, manage and access the data not fast and it is difficult; therefore the good option is to use the database management system. There are different types of Database Management Systems, each used different APIs to store and manage the data in them.

Types of Database Management Systems

Different types of Database Management Systems based on the data models they follow are:

  • Relational Database Management Systems
  • Hierarchical Database Management Systems
  • Network Database Management Systems
  • Object-oriented Database Management Systems

A. Relational Database Management Systems

The Relational Database Management Systems, in short, is called RDBMS. In the RDBMS, the data is stored in the different tables, and relations between the tables are established using primary keys and other keys, which are known as Foreign Keys. We will learn in detail about relational database management systems to understand MySql more clearly because MySql is a type of relational database management system.

Start Your Free Data Science Course

Hadoop, Data Science, Statistics & others

Let us revise the terminology related to the RDBMS:

All in One Data Science Bundle(360+ Courses, 50+ projects)
Python TutorialMachine LearningAWSArtificial Intelligence
TableauR ProgrammingPowerBIDeep Learning
Price
View Courses
360+ Online Courses | 50+ projects | 1500+ Hours | Verifiable Certificates | Lifetime Access
4.7 (86,584 ratings)

1. Database: A database is used to store a collection of tables with related data.

2. Table: A table is a collection of related data organized in the form of rows and columns. A table in a database looks like a simple spreadsheet. The table is used to represents or to stores the data related to the objects or entities or even to represent the relations.

3. Column: Column also called the field. The column store the data value for the specific field; for example, the column name is to store the employee name, which stores only the employee name.

4. Row: Row also called a record. The row is the set of field values that are relevant to a specific entity in the table. For example, in employee table contain fields as eid, ename, salary, address and so on.

5. Constraint: Constraints are rules which restrict the type of data that can be stored in a table. The constraint is helpful to maintain the data integrity in a table as well as in the database.

Some of the constraints are as follow.

  • Primary Key: A primary key is a unique key which means it should not have duplicate value and also should have a null value. As the primary key is having unique values so they can be used to identify each row or entity.
  • Foreign Key: A foreign key is a key that is referred to another table’s primary key. The primary and foreign Key used to establish the connection between the tables.
  • Composite key: A composite key is also called a compound key. The composite key is a key that having multiple columns as a primary key because identifying each row as one column is not sufficient.
  • Not null: Not null constraint restricts a column from entering a NULL value.
  • Unique: Unique constraint restricts a column to enter unique values.
  • Check: Check constraint restricts a column to enter values from the domain specified.
  • Default: Default constraints enter the default specified value if a null value is entered.

B. Hierarchical Database Management Systems

Now, in this topic of Introduction to MySQL, we are going to discuss Hierarchical Database Management Systems which organized or represent the data into a tree-like structure that is stored in the parent node and child node relationships. The data is represented in the collection of fields or records with only one value for each field and the records are linked to other records in the form of parent and children relationships. In a hierarchical database model, a parent record can have multiple children but a child record has only one parent. To travel a hierarchical database model, it needs to access each node of the tree until the record is found.

For example, Supplier can pay either cash or credit which can be represented in a hierarchical database model as:

Hierarchical-Database-Management-Systems

C. Network Database Management Systems

In this topic of Introduction to MySQL, we are going to discuss network Database Management Systems which represent the data into a network structure, and to create a relationship between entities use the link between them. It is an interconnected records network. The network database model is similar to a hierarchical database model except where one node can have only one parent, a network child node can have multiple parents node which represents many-to-many relationships.

Network-Database-Management-Systems

D. Object-oriented Database Management Systems

Object-oriented Database Management Systems also called OODBMS. It represents the data as objects and also supports the classes of objects and their properties like inheritance and all, it works with an object in programming languages similarly works in database objects. To represent composite or larger objects and objects linked to each other as by an “is-part-of” relationship.

MySQL Database

Introduction to MySQL Database is popular in relational database management systems can be used from small business applications to big business applications.

Some of the key features of MySQL are:

  • Open-source – MySQL is an open-source license. So we get it free nothing to pay to use it.
  • Implemented language – MySQL Written in C, C++.
  • Powerful – MySql handles a large subset of the data with the functionality of the most powerful database packages. So it makes MySQL is a very powerful program.
  • SQL data language – MySQL uses a standard database language that is SQL data language, which is commonly used in most of the database. So it compatible with other databases also.
  • Operating systems – On many operating systems the MySQL works with many languages like C, C++, PHP, PERL, JAVA, and so on.
  • Large data sets – With large data sets MySQL works well and even very fast.
  • Web development – MySQL can also be used in web applications as it is working with PHP and most web development languages.
  • Supports large databases – MySQL works with large databases. The default file size limit for a table is 4GB, which can be increased depending on the operating system, up to 50 million rows or more in a table.
  • Multi-layered design – MySQL is a multi-layered server design with independent modules. As it is fully multithreaded by using kernel threads, it uses multiple CPUs if they are available.
  • Client/server environment – MySQL Server works in embedded or client/server systems.

Uses of MySQL

As we discussed the introduction to MySQL now we are going to learn about the uses of MySQL are as follow:

  • Mysql is used by Wikipedia, Facebook, Google, Flickr, YouTube, and all famous companies.
  • WordPress, Joomla, Drupal, and all Content Management Systems (CMS) uses MySQL.
  • In developing a website as well uses MySQL.

How to get MySQL?

As MySql is an open-source can be freely downloaded from the website https://www.mysql.com and then install.

Recommended Articles

This has been a guide on Introduction to MySQL. Here we have discussed different types of database management systems and uses of MySQL. You may also look at the following article to learn more –

  1. DBMS and RDBMS
  2. Database Management System in Industry
  3. Career as an Oracle Database Administrator
  4. List of MySQL Query Commands
Popular Course in this category
SQL Training Program (7 Courses, 8+ Projects)
  7 Online Courses |  8 Hands-on Projects |  73+ Hours |  Verifiable Certificate of Completion
4.5
Price

View Course

Related Courses

MS SQL Training (16 Courses, 11+ Projects)4.9
Oracle Training (14 Courses, 8+ Projects)4.8
PL SQL Training (4 Courses, 2+ Projects)4.7
0 Shares
Share
Tweet
Share
Primary Sidebar
Footer
About Us
  • Blog
  • Who is EDUCBA?
  • Sign Up
  • Live Classes
  • Corporate Training
  • Certificate from Top Institutions
  • Contact Us
  • Verifiable Certificate
  • Reviews
  • Terms and Conditions
  • Privacy Policy
  •  
Apps
  • iPhone & iPad
  • Android
Resources
  • Free Courses
  • Database Management
  • Machine Learning
  • All Tutorials
Certification Courses
  • All Courses
  • Data Science Course - All in One Bundle
  • Machine Learning Course
  • Hadoop Certification Training
  • Cloud Computing Training Course
  • R Programming Course
  • AWS Training Course
  • SAS Training Course

ISO 10004:2018 & ISO 9001:2015 Certified

© 2022 - EDUCBA. ALL RIGHTS RESERVED. THE CERTIFICATION NAMES ARE THE TRADEMARKS OF THEIR RESPECTIVE OWNERS.

EDUCBA
Free Data Science Course

SPSS, Data visualization with Python, Matplotlib Library, Seaborn Package

*Please provide your correct email id. Login details for this Free course will be emailed to you

By signing up, you agree to our Terms of Use and Privacy Policy.

EDUCBA Login

Forgot Password?

By signing up, you agree to our Terms of Use and Privacy Policy.

EDUCBA
Free Data Science Course

Hadoop, Data Science, Statistics & others

*Please provide your correct email id. Login details for this Free course will be emailed to you

By signing up, you agree to our Terms of Use and Privacy Policy.

EDUCBA

*Please provide your correct email id. Login details for this Free course will be emailed to you

By signing up, you agree to our Terms of Use and Privacy Policy.

Let’s Get Started

By signing up, you agree to our Terms of Use and Privacy Policy.

This website or its third-party tools use cookies, which are necessary to its functioning and required to achieve the purposes illustrated in the cookie policy. By closing this banner, scrolling this page, clicking a link or continuing to browse otherwise, you agree to our Privacy Policy

Loading . . .
Quiz
Question:

Answer:

Quiz Result
Total QuestionsCorrect AnswersWrong AnswersPercentage

Explore 1000+ varieties of Mock tests View more