EDUCBA

EDUCBA

MENUMENU
  • Free Tutorials
  • Free Courses
  • Certification Courses
  • 360+ Courses All in One Bundle
  • Login
Home Data Science Data Science Tutorials MySQL Tutorial MySQL Server
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?Size
    • 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 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

MySQL Server

By Priya PedamkarPriya Pedamkar

MySQL-Server

Introduction to MySQL Server

The following article provides an outline for MySQL Server. There are many RDBMS (systems) that are available in the market for managing the databases, the most popular among them is MySQL. MySQL is an open-source Relational Database Management System(RDBMS). It is based on Structured Query Language (SQL – which is a language to manage the DataBase and perform CRUD operations such as create, read, etc., update and delete.).

MySQL Brief Journey

  • It was first created and owned by a Swedish company named MySQL AB, with its first initial release in the year 1995, May 23.
  • In 2008, MySQL AB was acquired by Sun Microsystems in a 1 billion deal.
  • In 2010, Sun Microsystems was further acquired by Oracle.
    The latest version of the MySQL server is 8.0, which was released on April 19, 2018.
  • It can virtually run on any platform such as Linux, Solaris, and Windows. It is the most popular and most widely RDBMS because it is an open-source and freeware DB Server that provides much-advanced database functionalities.

Examples

  • Google, Facebook, Yahoo, and lots of other Tech giants have employed MySQL to enhance their data processing capabilities.
  • MySQL is a very important component for LAMP, which is a web development platform with Linux as the operating system, Apache as the webserver, MySQL as RDBMS, and PHP as a programming language. Nevertheless, Python or Perl can be used as well instead of PHP as the programming or scripting language.
  • It can be used everywhere, where the Data needs to be stored in a relational manner, i.e., in a tabular format. Every table has a primary key, and rows can relate to each other using this primary key.

Architecture of MySQL Server

The architecture of MySQL mainly consists of the following components:

Start Your Free Data Science Course

Hadoop, Data Science, Statistics & others

  • MySQL Server
  • MySQL Clients
  • Data Directory
  • Storage Engine

MySQL is based on a Client-Server Model.

What-is-MySql-Server-output-image-1

1. MySQL Server

It is a MySQL instance where the actual data is getting stored and processed. This component is responsible for processing the incoming queries coming from MySQL clients and manipulates the database tables. It is also responsible for accepting database connections that are coming from MySQL Clients.

Important Programs of MySQL Server component are:

  • MySQL: It is a MySQL server daemon program. It runs in the background and manages requests from MySQL clients.
  • mysqld_safe: It is a program that restarts the server whenever an error occurs. This was one safety feature of this program; the other one is that it maintains the logs for the runtime information to an error log.
  • mysql.server: It is a MySQL utility that has been provided to start the mysqld_safe script.
  • mysqld_multi: This program is used to manage many mysqld processes that listen for connections on different connections channels like TCP/IP, UNIX Sockets, etc.

2. MySQL Clients

The MySQL clients are basically the utilities used for communicating with the MySQL server. In other words, these are the programs that communicate with the MySQL server. Examples of MySQL clients are any programs like Perl, PHP, Java, MySQL, mysqladmin and tools such as MySQL dump, mysqlcheck, myisamchk.

Important programs under MySQL clients are:

  • MySQL is an SQL shell where one can write and execute SQL statements. It can be interactive or non-interactive. When used interactively, results are returned in a tabular format, while non-interactive usage returns the result in a tab-separated format.
  • mysqladmin is a client for administrating MySQL servers. It can be used to check configuration files, update them, check for the current status of the server, create and drop the databases, etc.
  • mysqldump is a client utility and a database backup program that performs logical backups.
  • mysqlcheck and myisamchk are clients that are used to perform maintenance on Database tables like repairing, optimizing, and analyzing of the tables.

3. Data Directory

The Data Directory contains the actual data that is being stored as a result of ongoing operations over any applications/software or servers. It includes Databases, tables, log files, stored procedures, etc.

  • The default location for datadir in Linux is: /var/lib/mysql.
  • The default location for datadir in Windows is :C:\ProgramData\MySQL\MySQL Server 5.8
  • The name of the configuration file which contains the path for datadir is mysqld.cnf.
  • cnf can be found at /etc/mysql/mysql.conf.d/mysqld.cnf.
  • It is indeed possible to change the storage location for datadir in case someone runs out of allocated space.

4. Storage Engine

A storage engine is a software module that is being used by RDBMS to perform CRUD operations (Create, read, update and delete).

The storage engines are of two types in MySQL:

  • Transactional
  • Non-Transactional

The main difference between the Transactional and Non Transactional storage engines is that the transactional tables will record all the database operations in a log file, so even if MySQL crashes, you can still get your data back, while this is not the case with Non-Transactional Engines. Nevertheless, to point out, non-transactional engines are much faster, and they also have lower disk space requirements.

Below are some of the Storage Engines that is being used by MySQL; the most widely used among them is the InnoDB.

MySQL supported storage engines:

  • InnoDB
  • MyISAM
  • Memory
  • CSV
  • Merge
  • Archive
  • Federated
  • Blackhole

Advantages

Given below are the advantages mentioned:

  • Portable: It can run on a huge number of platforms like UNIX, Solaris, Windows, OS/2, etc.
  • Open Source: Most importantly, MySQL is made available to all as open-source software, and anyone can use it free of cost by agreeing to its terms and conditions.
  • Security: All MySQL Data Bases are very secure and are locked with passwords that are encrypted using complex algorithms, and it’s never easy to breach them.
  • Connectivity: There are a good number of mechanisms available to connect with MySQL servers, such as TCP/IP, UNIX Sockets, and named pipes.
  • Regular Updates and Continuous Development: Being an open-source platform, MySQL has a huge developer community, and they release patches and updates for MySQL regularly.

Recommended Articles

This has been a guide to MySQL Server. Here we have discussed the basic concepts, examples, advantages, and architecture of the MySQL server in detail. You may also look at the following articles to learn more –

  1. Cheat Sheet MySQL
  2. MySQL Numeric
  3. MySQL vs SQL Server
  4. MySQL List User
Popular Course in this category
SQL Training Program (10 Courses, 8+ Projects)
  10 Online Courses |  8 Hands-on Projects |  80+ Hours |  Verifiable Certificate of Completion
4.5
Price

View Course

Related Courses

MS SQL Training (16 Courses, 11+ Projects)4.9
Oracle Training (17 Courses, 8+ Projects)4.8
PL SQL Training (4 Courses, 2+ Projects)4.7
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

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

EDUCBA
Free Data Science Course

Hadoop, Data Science, Statistics & others

By continuing above step, you agree to our Terms of Use and Privacy Policy.
*Please provide your correct email id. Login details for this Free course will be emailed to you
EDUCBA

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

Let’s Get Started

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
EDUCBA

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

Forgot Password?

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