MySQL Server Storage Engines Explained!

Опубликовано: 03 Июнь 2023
на канале: Database Dive
1,057
11

In this mysql tutorial video we'll walk you through one of the core components of mysql server - mysql storage engines. We'll explain what they are, what they do, and how you should make use of them to the fullest. Here's what this sql tutorial will cover these mysql server storage engines:

1) InnoDB: the main storage engine used in the MySQL server. This MySQL server storage engine is known as a high-reliability and a high-performance storage engine and its main advantages include row-level locking, full support for the ACID model, and foreign keys. This storage engine is also the default storage engine as of MySQL server 5.5, and it has many settings unique to itself which can be heavily tuned.

2) MyISAM: MyISAM was considered one of the primary competitors to InnoDB, but as of MySQL server 5.5, this MySQL server storage engine is obsolete, and gone from the MySQL server infrastructure entirely starting from MySQL 8. These days, MyISAM should only be used for COUNT(*) queries because this storage engine keeps its row count inside of its metadata, while InnoDB does not. If you're wondering what storage engine to use - myisam vs innodb - use InnoDB.

3) CSV: Another interesting storage engine you will hear about in this MySQL tutorial is the CSV storage engine. This storage engine allows people to store data in a CSV format.

4) MEMORY: The MEMORY storage engine in the MySQL server stores all of the data inside of the memory. It does not support clustered or full-text indexes, compressed data, does not offer support for Multiversion Concurrency Control (MVCC), and also has limited support for replication.

5) BLACKHOLE: The BLACKHOLE storage engine in MySQL server does not store data.

6) ARCHIVE: The ARCHIVE storage engine in the MySQL server is intended to be used as an archive for old data. It does not offer support for sql indexes either.

7) FEDERATED: The FEDERATED mysql server storage engine allows us to access data inside of another MySQL database without the need for replication or clustering.

8) EXAMPLE: The EXAMPLE storage engine is intended to be used as an example of how to build storage engines in MySQL server.

Below you will find some of the most frequent sql interview questions and answers for experienced software engineers and DBAs:

Q: What is the most frequent type of a sql index?
A: The most frequent type of a SQL index is a B-Tree SQL index.

Q: I need sql indexes explained. What SQL tutorial will explain them to me? Can you make one?
A: We will make a sql index tutorial video if we see that there's a need for it. The most frequent sql index types are B-Tree sql indexes, spatial indexes, hash sql indexes, covering indexes, clustered sql indexes, multicolumn or composite sql indexes and prefix sql indexes.

Q: How to protect against SQL injection?
A: Don't pass user input into a SQL query. You really don't need to pass a mysql advanced tutorial to know this - it's that simple!

Q: Is there a big data tutorial for those looking to work with big data on mysql server?
A: Yes, it's available here:    • Big Data Tutorial: MySQL Edition (Big...  

Q: Is there a sql full course or any mysql tutorial that would cover mysql storage engines in more detail in all complex aspects?
A: Not that we know of, but if needed, we'll make a sql course talking about everything: sql basics, sql queries, sql vs nosql, sql for data analysis, etc.

Q: I've heard that MyISAM performs row level locking?
A: No, that's a common misconception.

Q: MyISAM vs InnoDB performance - which one is better and why?
A: InnoDB - all of the features that were available in MyISAM are now available in InnoDB.

If you've enjoyed this mysql course, explore some of our mysql tutorial videos below:

1) mysql vs postgresql - which database to choose?    • MySQL vs PostgreSQL - What to Choose?  
2) database slowness reasons - why are sql queries slow?    • Database Slowness Reasons - MySQL Tut...  
3) one of the most frequent sql interview questions and answers - sql subqueries:    • SQL Interview Questions and Answers: ...  
4) sql indexes explained - this sql tutorial video will go through sql indexes having a prefix type:    • SQL: Prefix Indexes Explained  
5) big data tutorial - how to run big data on a mysql server (mysql, mariadb or percona server?)    • Big Data Tutorial: MySQL Edition (Big...  

Enjoy the sql tutorial!

Music:
"Alex Productions - Startup" is under a Creative Commons (CC BY 3.0) license: https://creativecommons.org/licenses/...
Artist:    / @alexproductionsnocopyright  
Music powered by BreakingCopyright:    • 🔭 Chill Instrumental (Free Music) - "...  

#Database #MySQL #web #webdevelopment