MySQL is the most comprehensively organized (interview questions + notes + maps), and you will never be afraid of being stumped by MySQL in the interview!

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 summary of MySQL will help you "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, and then add VX: MXW5308 to get Get it for free

01. Summary of MySQL Interview Questions Collection

1.1 MySQL interview questions (basic part):

  • The difference between drop, truncate, delete
  • What are the three paradigms of database?
  • 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 is the role of triggers?
  • 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 the SQL statement classification and corresponding representative keywords in detail.
  • 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 too many threads in MySQL Sleep?
  • What does the sort_buffer_size parameter do? How to make online changes take effect?
  • 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?
  • A SQL statement in the drop library was executed by mistake. How to recover completely?
  • The 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 implement bidirectional master-slave replication and explain the application scenarios?
  • How does MySQL realize cascading synchronization and explain the application scenarios?
  • How to solve MySQL master-slave replication failure?
  • How to monitor whether the master-slave replication is faulty?
  • How does the MySQL database achieve 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 high-definition full version of "MySql Learning Resources Spree ", please forward + follow, and then add VX: MXW5308 to get it for 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 as much as 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, and the basic operations of the MySQL database

  • Chapter 2 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 the connection of MySQL database in C#, realize the connection of MySQL database in Java, and realize the connection of MySQL database 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 high-definition full version of "MySql Learning Resources Spree", please forward + follow, and then add VX: MXW5308 for free collection

03. A mind map 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 gift package must be To have it!

Friends who need the high-definition full version of "MySql Learning Resources Spree", please forward + follow, and then add VX: MXW5308 for free collection

Guess you like

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