Summary of database interview questions for personal use

MySQL:

  1. Can you introduce the indexing principle and data structure of MySQL?
  2. What is the difference between B+ tree and B tree?
  3. What is the difference between MySQL clustered index and non-clustered index?
  4. What are the principles for using MySQL indexes?
  5. How do different storage engines do actual storage?
  6. What is the structure of MySQL's composite index?
  7. How to optimize MySQL index?
  8. What are the four characteristics of a transaction? What is their realization principle?
  9. What are the functions of MySQL's redolog, undolog, and binlog?
  10. What is two-phase commit, and how to ensure data consistency during downtime?
  11. How does MVCC implement multi-version concurrency control? How to resolve read and write conflicts?
  12. What is a phantom read in MySQL? How to solve the problem of phantom reading?
  13. What is the difference between delete drop truncate?

Redis:

  1. Tell me about the data types of Redis in detail?
  2. Talk about the persistence strategy of Redis?
  3. How to use Redis to implement a distributed lock?
  4. Tell me what you know about Redis
  5. Talk about the difference between cache penetration, breakdown, and avalanche
  6. How Redis maintains double-write consistency with the database
  7. Please tell me about zset in Redis data type, what is the difference between it and set? How is the bottom layer realized?
  8. Talk about the single-threaded architecture of Redis
  9. How to achieve high availability of Redis
  10. Talk about the master-slave synchronization mechanism of Redis
  11. Talk about Redis's cache elimination strategy

Guess you like

Origin blog.csdn.net/qq_45800977/article/details/130197679