MySQL interview was asked not always answer: 100 MySQL interview questions and 21 questions MySQL Performance

Before the burst of the system to learn a bit MySQL, there are some practical experience, the chance to see an interview and MySQL-related articles, found that some of these questions answer themselves well, although most are aware knowledge, but not knowledge concatenated

Therefore decided to engage in a soul MySQL 100 ask, try to answer questions, so that their understanding of a little more in-depth knowledge of

Is aimed primarily at developers need to know some knowledge of MySQL, including aspects of the index, transaction, optimization, high frequency answer questions during the interview form

Related Index

  • What is the index?
  • The index is what kind of data structure?
  • Hash B + tree index and what is the difference or all the pros and cons of it?
  • The above mentioned B + tree does not need to query the data back to the table in time to meet clustered indexes and covering indexes, what is the clustered index?
  • Non-clustered index will be back to the table query anyway?
  • When indexed, what are the factors to consider it?
  • What index is the joint? Why pay attention to the order of the joint index?
  • Index creation are not used to? Or how can know the reason for this statement is running very slow?
  • So what happens in the index is created but not used when the query it for this column?

Transaction-related

  • What is a transaction?
  • What ACID is an? Details can be said about it?
  • At the same time there are multiple transactions during what will happen?
  • How to solve these problems it? MySQL transaction isolation level to understand it?
  • Innodb use what kind of isolation level it?
  • Lock for MySQL know?
  • What are MySQL lock it? It looks like the above lock is it not hinder the efficiency of concurrent?

Table Design

  • Why should we try to set a primary key?
  • Primary key increment ID or UUID?
  • Why field requirements defined as not null?
  • If you want to store the user's password hash, which fields should be used for storage?

Storage Engine Related

  • What MySQL storage engine support?
  • Varchar in MySQL

Guess you like

Origin blog.csdn.net/mysqlsd/article/details/104003707