MySQL's most complete 136 interview questions + notes + map sorting, interview big companies are no longer stumped by MySql

Preface

As a programmer, you are not unfamiliar with MySQL, especially in the Internet industry, where you use MySQL a lot. For job seekers, MySQL is the focus of the interview. Many people have the dream of being a big company, but they are defeated because of MySQL. In fact, MySQL is not difficult. Today’s most comprehensive MySQL summary will help you to "fire" at major companies, and the interview will no longer be stumped by MySQL.

Note: The content of MySQL is organized, including interview questions, study notes, use documents, and Xmind mind maps. Friends who need the high-definition full version of "MySql Learning Resources Gift Pack" please forward + follow to add assistant VX: MXW5308 for free (free)

01, MySQL interview question collection summary

1.1 MySQL interview questions (basic part):

  • The difference between drop, truncate, delete
  • What are the three database paradigms?
  • What is the difference between union and union all?
  • What is the difference between char, varchar2, and varchar?
  • What are the combined queries?
  • SQL statement execution order
  • The meaning of null
  • MySQL, SqlServer, oracle write character storage, string conversion time
  • Can the update statement modify the data in the result set?
  • The difference between B tree and B+ tree
  • Have you seen an index? Principles of indexing
  • Type of index, such as primary key index
  • View SQL execution plan
  • There are 100,000 pieces of data, write SQL statements to query several pieces of data with a larger value in a field
  • The difference between subquery and associated query
  • What are the characteristics of MySQL InnoDB and Mysaim?
  • The difference between optimistic lock and pessimistic lock? ?
  • The difference between row lock and table lock?
  • What is the database isolation level? what's the effect?
  • The basic principle of MySQL master-slave synchronization.
  • How to optimize database performance (index, sub-database and table, batch operation, paging algorithm, upgrade hard disk SSD, business optimization, master-slave deployment)
  • Under what circumstances will SQL not use indexes (exclude, not equal, function)
  • What field is generally indexed on (the field with the most filtered data)
  • MySQL, B+ index implementation, row lock implementation, SQL optimization
  • How to solve the problem of high concurrency and inventory reduction
  • Several granularities of database transactions

1.2 MySQL interview questions (actual part):

  • Database three paradigms, design data tables based on spike scenarios
  • Master-slave replication of the database
  • How to solve the deadlock
  • How to solve mysql concurrency (through transaction, isolation level, lock)
  • What does the trigger do?
  • What is a stored procedure? What to call?
  • The advantages and disadvantages of stored procedures?
  • The difference between stored procedures and functions
  • The role of the index? And what are its advantages and disadvantages?
  • What kind of fields are suitable for indexing
  • What are the index types?
  • What is a transaction? What is a lock?
  • What is a view? What is a cursor?
  • Pros and cons of views
  • List several table connection methods, what is the difference?
  • The difference between primary key and foreign key?
  • How to optimize the query speed in the database is very slow?
  • What are the three paradigms of database?
  • What is the difference between Varchar2 and varchar?
  • The difference between Oracle and Mysql?
  • The difference between order by and group by

1.3 MySQL interview questions (advanced advanced part):

  • Please explain the concept and main features of relational database?
  • Please tell us the typical products, characteristics and application scenarios of relational databases?
  • Please explain the concept and main features of non-relational database?
  • Please tell us the typical products, characteristics and application scenarios of non-relational databases?
  • Please describe in detail the SQL statement classification and corresponding representative keywords.
  • Please describe the difference between char(4) and varchar(4) in detail.
  • How to authorize oldboy users to access the database from 172.16.1.0/24.
  • What is MySQL multi-instance and how to configure MySQL multi-instance?
  • How to strengthen MySQL security, please give specific feasible measures?
  • What is the difference between delete and truncate to delete data?
  • How to solve the problem of excessive MySQL Sleep threads?
  • What does the sort_buffer_size parameter do? How to make online changes effective?
  • How to clean MySQL binlog online correctly?
  • What are the working modes of Binlog? What are the characteristics of each and how do companies choose?
  • I executed a SQL statement in the drop library by mistake. How to recover completely?
  • mysqldump backup uses the -A -B parameters, how to restore a single table?
  • Describe the principle of MySQL master-slave replication and the complete steps to configure master-slave.
  • How to enable the binlog function of the slave library?
  • How does MySQL realize bidirectional master-slave replication and explain the application scenarios?
  • How does MySQL realize cascade synchronization and explain the application scenarios?
  • How to solve MySQL master-slave replication failure?
  • How to monitor whether the master-slave replication fails?
  • How does MySQL database realize read-write separation?
  • The production one master and multiple slaves are down, how to manually recover?

MySQL interview answers and analysis:

MySQL is the most comprehensively organized (interview questions + notes + maps), and interview companies are no longer stumped by MySql

Friends who need the full HD version of "MySql Learning Resources Spree", please forward + follow to add assistant VX: MXW5308 Free access (free)

02. About the actual use of MySQL

2.1 21 best practices for MySQL performance optimization

  1. Optimize your queries for query caching
  2. EXPLAIN your SELECT query
  3. Use LIMIT 1 when only one row of data is required
  4. Index the search field
  5. Use a similar type of example when joining the table, and index it
  6. Never ORDER BY RAND()
  7. Avoid SELECT *
  8. Always set an ID for each table
  9. Use ENUM instead of VARCHAR
  10. Get advice from PROCEDURE ANALYSE()
  11. Use NOT NULL whenever possible
  12. Prepared Statements
  13. Unbuffered query
  14. Save the IP address as UNSIGNED INT
  15. Fixed-length tables will be faster
  16. Vertical split
  17. Split large DELETE or INSERT statements
  18. The smaller the column, the faster
  19. Choosing the right storage engine
  20. Use an Object Relational Mapper
  21. Beware of "permalinks"

MySQL is the most comprehensively organized (interview questions + notes + maps), and interview companies are no longer stumped by MySql

 

2.2 MySQL performance tuning and architecture design-complete book

  • Basic articles:

Basic introduction to MySQLI, composition of MySQL architecture, introduction to MySQL storage engine, MySQL security management, MySQL backup and recovery

  • Performance optimization articles:

Related factors affecting MySQLServer performance, MySQI database locking mechanism, MySQL database Query optimization, MySQL database Schema design performance optimization, MySQLServer performance optimization, common storage engine optimization

  • Architecture design articles:

Basic principles of MySQL scalable design, MySQL Replication for scalability design, data segmentation for scalability design, utilization of C ache and Se ar ch for scalability design, MySQL Cluster, high-availability design ideas and solutions, high availability Design of MySQL monitoring

MySQL is the most comprehensively organized (interview questions + notes + maps), and interview companies are no longer stumped by MySql

 

2.3 MySQL from entry to project practice

  • Chapter 1 Basic Knowledge

Hello MySQL, a preliminary exploration of the database, the use of common MySQL management tools, the basic operation of the MySQL database

  • The second core application

Basic operations of data tables, MySQL views, MySQL data types and operators, MySQL functions, detailed explanations of MySQL database query statements, MySQL database data and index operations, stored procedures and stored functions, using MySQL triggers

  • Chapter 3 Core Technology

MySQL database authority management and recovery, MySQL database replication, MySQL log management, use of MySQL to build distributed applications, MySQL query cache, use of MySQL error codes and messages

  • Chapter 4 Advanced Application

Realize MySQL database connection in C#, realize MySQL database connection in Java, realize MySQL database connection in PHP

  • Chapter 5 Project Actual Combat

Project actual combat coordination phase-project development and planning, project actual combat entry phase-forum management system database development, project actual combat improvement phase-enterprise membership management system database development, project actual combat advanced stage-news release system database development

MySQL is the most comprehensively organized (interview questions + notes + maps), and interview companies are no longer stumped by MySql

Friends who need the full HD version of "MySql Learning Resources Spree", please forward + follow to add assistant VX: MXW5308 Free access (free) 

03. Thinking about learning MySQL (Xmind)

MySQL optimization problem (Xmind)

Transaction, lock, sql optimization principle, JION principle, execution plan and execution details, execution process, impact of table structure on performance, index

MySQL is the most comprehensively organized (interview questions + notes + maps), and interview companies are no longer stumped by MySql

 

to sum up

All in all, learning is your own business. As a developer, MySQL must be mastered. If you have the dream of a big factory, the foundation should not be too bad. If you still have many questions about MySQL, then this MySQL summary package must be To have!

Friends who need the full HD version of "MySql Learning Resources Spree", please forward + follow to add assistant VX: MXW5308 Free access (free)

Guess you like

Origin blog.csdn.net/weixin_45132238/article/details/108776221