Interview must brush, MySQL interview 20 deadly questions, worth collecting and memorizing!

First look at the directory:

Friends who are interested in knowing the content and more related learning materials, please like and collect + comment and forward + follow me, there will be a lot of dry goods later. I have some interview questions, architecture, and design materials that can be said to be necessary for programmer interviews!
All the materials are organized into the network disk, welcome to download if necessary! Private message me to reply [111] to get it for free
 

1 Talk about the infrastructure diagram of MySQL

2 How is a SQL query executed in MySQL?

3 How do you optimize SQL in your daily work?

4 How to read the execution plan (explain), and how to understand the meaning of each field?

5 Have you ever cared about the time-consuming SQL in the business system? Count slow queries too? How have you optimized slow queries?

6 The difference between a clustered index and a non-clustered index

7 Why use B+ tree instead of ordinary binary tree?

8 What is the difference between Hash index and B+ tree index? How did you choose to design the index?

9 What is the leftmost prefix principle? What is the leftmost matching principle?

10 Which scenarios are indexes not suitable for?

11 What are the advantages and disadvantages of indexes?

12 Has MySQL encountered a deadlock problem, and how did you solve it?

13 What are the optimistic locks and pessimistic locks of the database and their differences?

14 Are you familiar with MVCC and know its underlying principles?

15 Four major characteristics of MySQL transactions and their implementation principles

16 What are the isolation levels of transactions? What is the default isolation level for MySQL?

17 What are phantom reads, dirty reads, and non-repeatable reads?

18 What should I do if the CPU of the MySQL database soars?

19 MYSQL master-slave delay, how do you solve it?

20 If you are asked to design sub-databases and sub-tables, what would you do briefly?

Guess you like

Origin blog.csdn.net/m0_69424697/article/details/125173153