MySQL purely handwritten open source notes, hammered 35K monthly salary, pictures and texts, have him, let him! !

MySQL, as a mainstream database, is a point of knowledge that interviewers from major factories always ask, but to what extent do they need to know? It is not enough to just stay at the level of basic operations such as building a database, creating a table, adding, deleting, checking and modifying. When interviewing for back-end development, there are a few questions in a row, and I will be asked almost dumbfounded.

How to optimize MySQL statement? Which scenarios are suitable for sub-database and sub-table? Tell me how InnoDB uses B+ tree storage?

Generally speaking, preparing for a MySQL interview requires nothing more than preparation from these areas: query, storage, transaction, lock, and performance tuning . Many friends suffer from the time-consuming and labor-intensive collection of information, and it is difficult to cover the interviewer's assessment angle. In order to prevent everyone from taking detours when preparing for the interview, I have stayed up late for almost a week, carefully sorting out the mainstream test sites for MySQL interview questions from major manufacturers. After many iterations, this MySQL interview document and study notes are finally formed, from which you Can learn:

  • Gain a complete MySQL learning path
  • Analyze database problems for actual scenarios and perform performance tuning
  • Absorb the experience sharing of industry experts and accelerate the advancement of MySQL skills
  • Deepen the understanding of MySQL's underlying and core technologies
  • Easily deal with MySQL questions in the interview

MySQL basic to advanced to tuning notes

The study notes are mainly divided into 12 modules, specifically:
img

Due to the length of the text, only the screenshots of the detailed catalog and content are shown here. Friends in need can get them for free at the end of the article!
img
Important properties of MySQL

img

MySQL installation and Mysq|Permissions

img

MySQL data type

img

MySQL architecture

img

Storage engine

img

lock
img

Affairs

img

Business design

img

Slow query
img

Index and execution plan
img

SQL optimization

img

**Due to the length of the word, the above MySQL study notes and MySQL interview analysis 108 questions documents have been organized into offline documents, friends in need can click to obtain

MySQL Interview Analysis 108 Questions Document

There are 5 modules in this interview document, and the 108-question analysis has the following modules respectively

MySQL basic module

  1. Tell me about the internal execution process of MySQL executing a query statement?
  2. MySQL prompts that "this column does not exist" is reported to which node?
  3. What are the advantages and disadvantages of the MySQL query cache function?
  4. How to turn off the query cache function of MySQL?
  5. What are the commonly used engines for MySQL?
  6. Can MySQL set the database engine for the table level? How to set it up?
  7. What is the difference between the commonly used storage engines InnoDB and MyISAM?
  8. What are the features of InnoDB?
  9. There are three pieces of data in an auto-increment table. After deleting two pieces of data, restart the database and add another piece of data. What is the ID of this piece of data?
  10. What situation in MySQL can cause auto-increment primary keys to be inconsistent?
  11. Can auto-incrementing primary keys in InnoDB be persisted?

img

MySQL index module

  1. What is an index?
  2. What are the advantages and disadvantages of indexes?
  3. What is wrong with the following SQL? How to optimize?
  4. Why does MySQL officially recommend using an auto-incrementing primary key as the primary key of a table?
  5. What are the advantages and disadvantages of auto-incrementing primary keys?
  6. How many types of indexes are there? How to create each?
  7. What is the difference between primary index and unique index?
  8. Why is the query performance of primary key index higher than ordinary index in InnDB?
  9. What is the return table query?
  10. How to query all indexes of a table?
  11. How many index columns can MySQL create at most?
  12. Which option will the following like query use the index? why?
  13. How to make like %abc use index query?

img

MySQL transaction module

  1. What is business?
  2. What are the characteristics of transactions?
  3. How many transaction isolation levels are there in MySQL? What are they?
  4. What is the difference between phantom reading and non-repeatable reading?
  5. What are the general problems with concurrent transactions?
  6. What's wrong with concurrent transactions? How should it be solved?
  7. What is MVCC?
  8. How does MVCC work?
  9. How does MVCC work under the REPEATABLE READ isolation level?
  10. What is the principle of MySQL transaction implementation?
  11. How to set the transaction isolation level of MySQL?

MySQL log module

  1. What is a lock? How many types of locks are provided in MySQL?
  2. What is a deadlock?
  3. What are the common deadlock cases?
  4. How to deal with deadlocks?
  5. How to check deadlock?
  6. How to avoid deadlock?
  7. How does InnoDB treat deadlocks by default?
  8. How to enable deadlock detection?
  9. What is a global lock? What are its application scenarios?
  10. What is a shared lock?
  11. What is an exclusive lock?
  12. What problems can be caused by using global locks?
  13. How to deal with the situation that the entire database cannot be inserted during logical backup?

img

MySQL log articles

img

MySQL performance optimization module

  1. What is a slow query?
  2. How to enable slow query log?
  3. How to locate slow queries?
  4. What are the optimization methods of MySQL?
  5. What are the common MySQL read-write separation solutions?
  6. Tell me about the function and execution process of Sharding-JDBC?

img

**Due to the length of the word, the above MySQL study notes and MySQL interview analysis 108 questions documents have been organized into offline documents, friends in need can click to obtain

MySQL study notes

img

MySQL Interview Analysis 108 Questions Document

img

Guess you like

Origin blog.csdn.net/doubututou/article/details/109098782