René's URL Explorer Experiment


Title: InterviewNotes/notes/MySQL.md at master · githubclj/InterviewNotes · GitHub

Open Graph Title: InterviewNotes/notes/MySQL.md at master · githubclj/InterviewNotes

X Title: InterviewNotes/notes/MySQL.md at master · githubclj/InterviewNotes

Description: :books: 技术面试需要掌握的基础知识,持续更新中~. Contribute to githubclj/InterviewNotes development by creating an account on GitHub.

Open Graph Description: :books: 技术面试需要掌握的基础知识,持续更新中~. Contribute to githubclj/InterviewNotes development by creating an account on GitHub.

X Description: :books: 技术面试需要掌握的基础知识,持续更新中~. Contribute to githubclj/InterviewNotes development by creating an account on GitHub.

Opengraph URL: https://github.com/githubclj/InterviewNotes/blob/master/notes/MySQL.md

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/blob/*name(/*path)
route-controllerblob
route-actionshow
fetch-noncev2:eeb70d9f-f529-c843-2e67-16b583f2b466
current-catalog-service-hashf3abb0cc802f3d7b95fc8762b94bdcb13bf39634c40c357301c4aa1d67a256fb
request-id8592:1A8743:4079F41:59C8603:6A54D6C5
html-safe-noncea0072e840a884e8e96220081262db0036929ff29eb76e11b1b1e853614155635
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NTkyOjFBODc0Mzo0MDc5RjQxOjU5Qzg2MDM6NkE1NEQ2QzUiLCJ2aXNpdG9yX2lkIjoiMjQzNzMxNzY3NjUyOTY2OTgyOSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmacb15174ccdebe10e6dd0f70c69210f793e69bc1150531eb2c9fd112c329e818bc
hovercard-subject-tagrepository:123276958
github-keyboard-shortcutsrepository,source-code,file-tree,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///blob/show
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/githubclj/InterviewNotes/blob/master/notes/MySQL.md
twitter:imagehttps://opengraph.githubassets.com/c8997413755f1eb344ace58fc06a17ba44288cbcdad728527ae8b42786a1e7f0/githubclj/InterviewNotes
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/c8997413755f1eb344ace58fc06a17ba44288cbcdad728527ae8b42786a1e7f0/githubclj/InterviewNotes
og:image:alt:books: 技术面试需要掌握的基础知识,持续更新中~. Contribute to githubclj/InterviewNotes development by creating an account on GitHub.
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Nonea556215b071af6609619e2bbe6f00bdfbf0812ad723b1ae6c301858a7a829f54
turbo-cache-controlno-cache
go-importgithub.com/githubclj/InterviewNotes git https://github.com/githubclj/InterviewNotes.git
octolytics-dimension-user_id19384864
octolytics-dimension-user_logingithubclj
octolytics-dimension-repository_id123276958
octolytics-dimension-repository_nwogithubclj/InterviewNotes
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forktrue
octolytics-dimension-repository_parent_id121395510
octolytics-dimension-repository_parent_nwoCyC2018/CS-Notes
octolytics-dimension-repository_network_root_id121395510
octolytics-dimension-repository_network_root_nwoCyC2018/CS-Notes
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release840b5d20d5a883c23cf56f5240b2c343d6cc0867
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/githubclj/InterviewNotes/blob/master/notes/MySQL.md#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgithubclj%2FInterviewNotes%2Fblob%2Fmaster%2Fnotes%2FMySQL.md
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgithubclj%2FInterviewNotes%2Fblob%2Fmaster%2Fnotes%2FMySQL.md
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fblob%2Fshow&source=header-repo&source_repo=githubclj%2FInterviewNotes
Reloadhttps://github.com/githubclj/InterviewNotes/blob/master/notes/MySQL.md
Reloadhttps://github.com/githubclj/InterviewNotes/blob/master/notes/MySQL.md
Reloadhttps://github.com/githubclj/InterviewNotes/blob/master/notes/MySQL.md
githubclj https://github.com/githubclj
InterviewNoteshttps://github.com/githubclj/InterviewNotes
CyC2018/CS-Noteshttps://github.com/CyC2018/CS-Notes
Notifications https://github.com/login?return_to=%2Fgithubclj%2FInterviewNotes
Fork 0 https://github.com/login?return_to=%2Fgithubclj%2FInterviewNotes
Star 0 https://github.com/login?return_to=%2Fgithubclj%2FInterviewNotes
Code https://github.com/githubclj/InterviewNotes
Pull requests 0 https://github.com/githubclj/InterviewNotes/pulls
Actions https://github.com/githubclj/InterviewNotes/actions
Projects https://github.com/githubclj/InterviewNotes/projects
Wiki https://github.com/githubclj/InterviewNotes/wiki
Security and quality 0 https://github.com/githubclj/InterviewNotes/security
Insights https://github.com/githubclj/InterviewNotes/pulse
Code https://github.com/githubclj/InterviewNotes
Pull requests https://github.com/githubclj/InterviewNotes/pulls
Actions https://github.com/githubclj/InterviewNotes/actions
Projects https://github.com/githubclj/InterviewNotes/projects
Wiki https://github.com/githubclj/InterviewNotes/wiki
Security and quality https://github.com/githubclj/InterviewNotes/security
Insights https://github.com/githubclj/InterviewNotes/pulse
https://github.com/githubclj/InterviewNotes
InterviewNoteshttps://github.com/githubclj/InterviewNotes/tree/master
noteshttps://github.com/githubclj/InterviewNotes/tree/master/notes
Historyhttps://github.com/githubclj/InterviewNotes/commits/master/notes/MySQL.md
https://github.com/githubclj/InterviewNotes/commits/master/notes/MySQL.md
InterviewNoteshttps://github.com/githubclj/InterviewNotes/tree/master
noteshttps://github.com/githubclj/InterviewNotes/tree/master/notes
Rawhttps://github.com/githubclj/InterviewNotes/raw/refs/heads/master/notes/MySQL.md
存储引擎https://github.com/githubclj/InterviewNotes/blob/master/notes/MySQL.md#%E5%AD%98%E5%82%A8%E5%BC%95%E6%93%8E
1. InnoDBhttps://github.com/githubclj/InterviewNotes/blob/master/notes/MySQL.md#1-innodb
2. MyISAMhttps://github.com/githubclj/InterviewNotes/blob/master/notes/MySQL.md#2-myisam
3. InnoDB 与 MyISAM 的比较https://github.com/githubclj/InterviewNotes/blob/master/notes/MySQL.md#3-innodb-%E4%B8%8E-myisam-%E7%9A%84%E6%AF%94%E8%BE%83
数据类型https://github.com/githubclj/InterviewNotes/blob/master/notes/MySQL.md#%E6%95%B0%E6%8D%AE%E7%B1%BB%E5%9E%8B
1. 整型https://github.com/githubclj/InterviewNotes/blob/master/notes/MySQL.md#1-%E6%95%B4%E5%9E%8B
2. 浮点数https://github.com/githubclj/InterviewNotes/blob/master/notes/MySQL.md#2-%E6%B5%AE%E7%82%B9%E6%95%B0
3. 字符串https://github.com/githubclj/InterviewNotes/blob/master/notes/MySQL.md#3-%E5%AD%97%E7%AC%A6%E4%B8%B2
4. 时间和日期https://github.com/githubclj/InterviewNotes/blob/master/notes/MySQL.md#4-%E6%97%B6%E9%97%B4%E5%92%8C%E6%97%A5%E6%9C%9F
索引https://github.com/githubclj/InterviewNotes/blob/master/notes/MySQL.md#%E7%B4%A2%E5%BC%95
1. 索引分类https://github.com/githubclj/InterviewNotes/blob/master/notes/MySQL.md#1-%E7%B4%A2%E5%BC%95%E5%88%86%E7%B1%BB
1.1 B-Tree 索引https://github.com/githubclj/InterviewNotes/blob/master/notes/MySQL.md#11-b-tree-%E7%B4%A2%E5%BC%95
1.2 哈希索引https://github.com/githubclj/InterviewNotes/blob/master/notes/MySQL.md#12-%E5%93%88%E5%B8%8C%E7%B4%A2%E5%BC%95
1.3. 空间索引数据(R-Tree)https://github.com/githubclj/InterviewNotes/blob/master/notes/MySQL.md#13-%E7%A9%BA%E9%97%B4%E7%B4%A2%E5%BC%95%E6%95%B0%E6%8D%AEr-tree
1.4 全文索引https://github.com/githubclj/InterviewNotes/blob/master/notes/MySQL.md#14-%E5%85%A8%E6%96%87%E7%B4%A2%E5%BC%95
2. 索引的优点https://github.com/githubclj/InterviewNotes/blob/master/notes/MySQL.md#2-%E7%B4%A2%E5%BC%95%E7%9A%84%E4%BC%98%E7%82%B9
3. 索引优化https://github.com/githubclj/InterviewNotes/blob/master/notes/MySQL.md#3-%E7%B4%A2%E5%BC%95%E4%BC%98%E5%8C%96
3.1 独立的列https://github.com/githubclj/InterviewNotes/blob/master/notes/MySQL.md#31-%E7%8B%AC%E7%AB%8B%E7%9A%84%E5%88%97
3.2 前缀索引https://github.com/githubclj/InterviewNotes/blob/master/notes/MySQL.md#32-%E5%89%8D%E7%BC%80%E7%B4%A2%E5%BC%95
3.3 多列索引https://github.com/githubclj/InterviewNotes/blob/master/notes/MySQL.md#33-%E5%A4%9A%E5%88%97%E7%B4%A2%E5%BC%95
3.4 索引列的顺序https://github.com/githubclj/InterviewNotes/blob/master/notes/MySQL.md#34-%E7%B4%A2%E5%BC%95%E5%88%97%E7%9A%84%E9%A1%BA%E5%BA%8F
3.5 聚簇索引https://github.com/githubclj/InterviewNotes/blob/master/notes/MySQL.md#35-%E8%81%9A%E7%B0%87%E7%B4%A2%E5%BC%95
3.6 覆盖索引https://github.com/githubclj/InterviewNotes/blob/master/notes/MySQL.md#36-%E8%A6%86%E7%9B%96%E7%B4%A2%E5%BC%95
4. B-Tree 和 B+Tree 原理https://github.com/githubclj/InterviewNotes/blob/master/notes/MySQL.md#4-b-tree-%E5%92%8C-b+tree-%E5%8E%9F%E7%90%86
4. 1 B-Treehttps://github.com/githubclj/InterviewNotes/blob/master/notes/MySQL.md#4-1-b-tree
4.2 B+Treehttps://github.com/githubclj/InterviewNotes/blob/master/notes/MySQL.md#42-b+tree
4.3 带有顺序访问指针的 B+Treehttps://github.com/githubclj/InterviewNotes/blob/master/notes/MySQL.md#43-%E5%B8%A6%E6%9C%89%E9%A1%BA%E5%BA%8F%E8%AE%BF%E9%97%AE%E6%8C%87%E9%92%88%E7%9A%84-b+tree
4.4 为什么使用 B-Tree 和 B+Treehttps://github.com/githubclj/InterviewNotes/blob/master/notes/MySQL.md#44-%E4%B8%BA%E4%BB%80%E4%B9%88%E4%BD%BF%E7%94%A8-b-tree-%E5%92%8C-b+tree
查询性能优化https://github.com/githubclj/InterviewNotes/blob/master/notes/MySQL.md#%E6%9F%A5%E8%AF%A2%E6%80%A7%E8%83%BD%E4%BC%98%E5%8C%96
1. Explainhttps://github.com/githubclj/InterviewNotes/blob/master/notes/MySQL.md#1-explain
2. 减少返回的列https://github.com/githubclj/InterviewNotes/blob/master/notes/MySQL.md#2-%E5%87%8F%E5%B0%91%E8%BF%94%E5%9B%9E%E7%9A%84%E5%88%97
3. 减少返回的行https://github.com/githubclj/InterviewNotes/blob/master/notes/MySQL.md#3-%E5%87%8F%E5%B0%91%E8%BF%94%E5%9B%9E%E7%9A%84%E8%A1%8C
4. 拆分大的 DELETE 或 INSERT 语句https://github.com/githubclj/InterviewNotes/blob/master/notes/MySQL.md#4-%E6%8B%86%E5%88%86%E5%A4%A7%E7%9A%84-delete-%E6%88%96-insert-%E8%AF%AD%E5%8F%A5
分库与分表https://github.com/githubclj/InterviewNotes/blob/master/notes/MySQL.md#%E5%88%86%E5%BA%93%E4%B8%8E%E5%88%86%E8%A1%A8
故障转移和故障恢复https://github.com/githubclj/InterviewNotes/blob/master/notes/MySQL.md#%E6%95%85%E9%9A%9C%E8%BD%AC%E7%A7%BB%E5%92%8C%E6%95%85%E9%9A%9C%E6%81%A2%E5%A4%8D
1. 故障转移https://github.com/githubclj/InterviewNotes/blob/master/notes/MySQL.md#1-%E6%95%85%E9%9A%9C%E8%BD%AC%E7%A7%BB
2. 故障恢复https://github.com/githubclj/InterviewNotes/blob/master/notes/MySQL.md#2-%E6%95%85%E9%9A%9C%E6%81%A2%E5%A4%8D
参考资料https://github.com/githubclj/InterviewNotes/blob/master/notes/MySQL.md#%E5%8F%82%E8%80%83%E8%B5%84%E6%96%99
https://github.com/githubclj/InterviewNotes/blob/master/notes/MySQL.md#存储引擎
https://github.com/githubclj/InterviewNotes/blob/master/notes/MySQL.md#1-innodb
https://github.com/githubclj/InterviewNotes/blob/master/notes/MySQL.md#2-myisam
https://github.com/githubclj/InterviewNotes/blob/master/notes/MySQL.md#3-innodb-与-myisam-的比较
https://github.com/githubclj/InterviewNotes/blob/master/notes/MySQL.md#数据类型
https://github.com/githubclj/InterviewNotes/blob/master/notes/MySQL.md#1-整型
https://github.com/githubclj/InterviewNotes/blob/master/notes/MySQL.md#2-浮点数
https://github.com/githubclj/InterviewNotes/blob/master/notes/MySQL.md#3-字符串
https://github.com/githubclj/InterviewNotes/blob/master/notes/MySQL.md#4-时间和日期
https://github.com/githubclj/InterviewNotes/blob/master/notes/MySQL.md#索引
https://github.com/githubclj/InterviewNotes/blob/master/notes/MySQL.md#1-索引分类
https://github.com/githubclj/InterviewNotes/blob/master/notes/MySQL.md#11-b-tree-索引
https://github.com/githubclj/InterviewNotes/blob/master/notes/MySQL.md#12-哈希索引
https://github.com/githubclj/InterviewNotes/blob/master/notes/MySQL.md#13-空间索引数据r-tree
https://github.com/githubclj/InterviewNotes/blob/master/notes/MySQL.md#14-全文索引
https://github.com/githubclj/InterviewNotes/blob/master/notes/MySQL.md#2-索引的优点
https://github.com/githubclj/InterviewNotes/blob/master/notes/MySQL.md#3-索引优化
https://github.com/githubclj/InterviewNotes/blob/master/notes/MySQL.md#31-独立的列
https://github.com/githubclj/InterviewNotes/blob/master/notes/MySQL.md#32-前缀索引
https://github.com/githubclj/InterviewNotes/blob/master/notes/MySQL.md#33-多列索引
https://github.com/githubclj/InterviewNotes/blob/master/notes/MySQL.md#34-索引列的顺序
https://github.com/githubclj/InterviewNotes/blob/master/notes/MySQL.md#35-聚簇索引
https://github.com/CyC2018/InterviewNotes/blob/master/pics//b9e9ae8c-e216-4c01-b267-a50dbeb98fa4.jpg
https://github.com/githubclj/InterviewNotes/blob/master/notes/MySQL.md#36-覆盖索引
https://github.com/githubclj/InterviewNotes/blob/master/notes/MySQL.md#4-b-tree-和-btree-原理
https://github.com/githubclj/InterviewNotes/blob/master/notes/MySQL.md#4-1-b-tree
https://github.com/CyC2018/InterviewNotes/blob/master/pics//5ed71283-a070-4b21-85ae-f2cbfd6ba6e1.jpg
https://github.com/githubclj/InterviewNotes/blob/master/notes/MySQL.md#42-btree
https://github.com/CyC2018/InterviewNotes/blob/master/pics//63cd5b50-d6d8-4df6-8912-ef4a1dd5ba13.jpg
https://github.com/githubclj/InterviewNotes/blob/master/notes/MySQL.md#43-带有顺序访问指针的-btree
https://github.com/CyC2018/InterviewNotes/blob/master/pics//1ee5f0a5-b8df-43b9-95ab-c516c54ec797.jpg
https://github.com/githubclj/InterviewNotes/blob/master/notes/MySQL.md#44-为什么使用-b-tree-和-btree
https://github.com/githubclj/InterviewNotes/blob/master/notes/MySQL.md#查询性能优化
https://github.com/githubclj/InterviewNotes/blob/master/notes/MySQL.md#1-explain
https://github.com/githubclj/InterviewNotes/blob/master/notes/MySQL.md#2-减少返回的列
https://github.com/githubclj/InterviewNotes/blob/master/notes/MySQL.md#3-减少返回的行
https://github.com/githubclj/InterviewNotes/blob/master/notes/MySQL.md#4-拆分大的-delete-或-insert-语句
https://github.com/githubclj/InterviewNotes/blob/master/notes/MySQL.md#分库与分表
https://github.com/githubclj/InterviewNotes/blob/master/notes/MySQL.md#故障转移和故障恢复
https://github.com/githubclj/InterviewNotes/blob/master/notes/MySQL.md#1-故障转移
https://github.com/CyC2018/InterviewNotes/blob/master/pics//fabd5fa0-b75e-48d0-9e2c-31471945ceb9.jpg
https://github.com/githubclj/InterviewNotes/blob/master/notes/MySQL.md#2-故障恢复
https://github.com/githubclj/InterviewNotes/blob/master/notes/MySQL.md#参考资料
MySQL 索引背后的数据结构及算法原理 http://blog.codinglabs.org/articles/theory-of-mysql-index.html
MySQL 索引优化全攻略 http://www.runoob.com/w3cnote/mysql-index.html
20+ 条 MySQL 性能优化的最佳经验 https://www.jfox.info/20-tiao-mysql-xing-nen-you-hua-de-zui-jia-jing-yan.html
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.