Outrageous! The internal manual "MySQL from 0 to High-level Notes" purely hand-written by Alibaba's technical director is open source for a limited time

The job hunting season is just around the corner, and there are tens of thousands of skills, but hard skills are the key. I heard that the epidemic environment this year is not good, and we must prepare well. MySQL is a must-have skill for advanced Java programmers. Many friends often fail here during interviews, and they are full of hatred. Proficiency in MySQL knowledge is highly operable in practice, especially in the Internet industry, not only to write codes and implement functions, but also to be able to operate normally under high concurrency conditions.

So the editor will share this "MySQL Notes" document with you today. This document will be explained to you from the basics, performance optimization, and architecture design. Hope you guys like it!

Due to the length of the article, it can only be displayed in the form of screenshots. Those who are interested in the full version can download it at the end of the article

Directory overview

content overview

This "MySQL Notes" is mainly divided into three parts: basics, performance optimization, and architecture design; so next, the editor will expand each article carefully to explain the knowledge points of this book in detail. !

1. Basic articles

As one of the most popular open source database software, MySQL database software is already widely known. But in order to take care of readers who are not familiar with MySQL, we will give a brief introduction to MySQL in this chapter. The main content includes the composition of various functional modules of MySQL, the working principle of each module, and the process of Query processing.

Chapter 1: Basic Introduction to MySQL

As one of the most popular open source database software, MySQL database software is already widely known. But in order to take care of readers who are not familiar with MySQL, we will give a brief introduction to MySQL in this chapter. The main content includes the composition of various functional modules of MySQL, the working principle of each module, the process of query processing, etc.

  1. Introduction to MysQLServer

  2. A Simple Comparison of MySQL and Other Databases

  3. The main application scenarios of MySQ

  4. summary

Chapter 2: MySQL Architecture Components

Small but complete. Although MySQL is famous for its simplicity, its internal structure is not simple. This chapter introduces the overall architecture of MySQL from the perspectives of MySQL's physical composition, logical composition, and related tools, hoping to give readers a more comprehensive and in-depth understanding of MySQL.

  1. MySQL physical file composition

  2. MySQLServer system architecture

  3. Introduction to the use of MySQL's own tools

  4. summary

Chapter 3: Introduction to the MySQL Storage Engine
  1. Overview of the MySQL storage engine

  2. Introduction to the MyISAM storage engine

  3. Introduction to the Innodb storage engine

  4. Introduction to NDECluster Storage Engine

  5. Introduction to other storage engines

  6. summary

Chapter 4: MySQL Security Administration

For any enterprise, the security of the data stored in its database system is undoubtedly very important, especially for some business data of the company, the data may be the foundation of the company, and if the security of the data is lost, the company may be lost. everything of. This chapter will give a more detailed introduction to the security-related content of MySQL.

  1. Database System Security Related Factors

  2. Introduction to MySQL Privilege System

  3. MySQL access authorization policy

  4. Notes on Security Settings

  5. summary

Chapter 5: MySQL Backup and Recovery

Database backup and recovery has always been one of the most important parts of a DBA's work, and it is also one of the basic tasks. Any database in a formal environment must have a complete backup plan and recovery test. This chapter will mainly introduce the backup and recovery related content of the MySQL database.

  1. Database Backup Usage Scenarios

  2. Logical backup and recovery testing

  3. Physical backup and recovery formula

  4. Design ideas for backup strategies

  5. summary

2. Performance optimization

Chapter 6: Related Factors Affecting MySQLServer Performance

Most people agree that the performance bottleneck of a database application system (the database application system here generally refers to all systems using the database) is most likely to occur in the operation of data, and most of the data operations of the database application system are managed through the database. The relevant interface provided by the software is completed. Therefore, the database management software has naturally become the performance bottleneck of the database application system, which is a common view in the current industry. But is the performance bottleneck of our application system really completely caused by the database management software and the database host itself? We will conduct a more in-depth analysis through the content of this chapter, so that everyone can understand where the performance of a database application system is related, and let everyone find out the root cause of the performance problems of their respective application systems, and as clear as possible Know how to optimize your application system.

Chapter 7: MySQL Database Locking Mechanism

In order to ensure the consistency and integrity of data, any database has a locking mechanism. The advantages and disadvantages of the locking mechanism should directly reflect the concurrent processing capability and performance of a database system, so the realization of the locking mechanism has become one of the core technologies of various databases. This chapter will analyze in detail the locking mechanisms of MyISAM and Innodb, two of the most frequently used storage engines in MySQL.

Chapter 8: Optimization of MySQL Database Query

In the previous chapter "Related Factors Affecting MySQL Application System Performance", we have already analyzed that Query statements have a great impact on database performance, so this chapter will specifically analyze the optimization of MySQL Query statements.

Chapter 9: Performance Optimization of MySQL Database Schema Design

Many people think that performance is optimized in the process of writing code (program code or database code), but this is actually a very big misunderstanding. The part that really affects the performance the most is already produced in the design. In many cases, the improvement that can be brought about by the later optimization is only to solve some problems left over by the ex-wife’s design, and the problems that can be solved are usually relatively limited. . This chapter will discuss how to ensure that the MySQL database Schema design is as efficient as possible and minimize later troubles.

Chapter 10: MySQLServer Performance Optimization
  1. MySQL installation optimization

  2. MySQL log setting optimization

  3. QueryCache optimization

  4. Other common optimizations for MySQLServer

  5. summary

Chapter 11: Common Storage Engine Optimizations
  1. MyISAM storage engine optimization

  2. Innodb storage engine optimization

  3. Innodb cache related optimization

  4. transaction optimization

  5. Data Storage Optimization

  6. Innodb other optimizations

  7. Innodb performance monitoring

3. Architecture Design

Chapter 12: Fundamentals of MySQL's Scalable Design
  1. what is scalability

  2. Principle of Minimizing Transaction Dependencies

  3. principle of consistent teaching

  4. High availability and data security principles

  5. summary

Chapter 13: MySQL Replication for Scalability Design
  1. Replication's significance to scalability design

  2. Implementation Principle of Replication Mechanism

  3. replication implementation level

  4. Replication common architecture

  5. Repli cation build implementation

  6. summary

Chapter 14: Data Segmentation for Scalability Design
  1. What is data segmentation

  2. Vertical Slicing of Data

  3. Data splitting horizontally

  4. Use of Vertical and Horizontal Joint Sharding

  5. Data Segmentation and Integration Solution

  6. Possible problems in data segmentation and integration

  7. summary

Chapter 15: Utilization of Cache and Search in Scalability Design
  1. Extensible design extends beyond the database

  2. Reasonable use of third-party Cache solutions

  3. Implement the Cache service by yourself

  4. Using Search to Realize Efficient Full-text Search

  5. Using Distributed Parallel Computing to Realize High-Performance Operation of Large Data Volume

  6. summary

Chapter 16: MySQLCluster
  1. Introduction to MySQL Cluster

  2. Setting up the MySQLCluster environment

  3. Detailed introduction to MySQLCluster configuration (config.ini)

  4. MySQLCluster basic management and maintenance

  5. Basic optimization ideas

  6. summary

Chapter 17: Ideas and Solutions for High Availability Design
  1. Use Replication to achieve high availability architecture

  2. Using MySQLCluster to achieve overall high availability

  3. Use DRED to ensure high security and reliability of data

  4. Other high-availability design solutions

  5. Comparison of the pros and cons of various high availability solutions

  6. summary

Chapter 18: MySQL Monitoring for High Availability Design
  1. Monitoring System Design

  2. performance status monitoring

  3. summary

Due to the limited length of the article, it will be displayed here. Friends who are interested in the full version can download it at the bottom

Guess you like

Origin blog.csdn.net/wdj_yyds/article/details/131683195