2020-02-09 02:18:58 +08:00
|
|
|
|
---
|
|
|
|
|
home: true
|
2021-05-13 16:57:28 +08:00
|
|
|
|
heroImage: https://raw.githubusercontent.com/dunwu/images/dev/common/dunwu-logo-200.png
|
2020-02-09 02:18:58 +08:00
|
|
|
|
heroText: DB-TUTORIAL
|
|
|
|
|
tagline: 💾 db-tutorial 是一个数据库教程。
|
|
|
|
|
actionLink: /
|
|
|
|
|
footer: CC-BY-SA-4.0 Licensed | Copyright © 2018-Now Dunwu
|
|
|
|
|
---
|
|
|
|
|
|
2020-02-25 22:35:18 +08:00
|
|
|
|
![license](https://badgen.net/github/license/dunwu/db-tutorial)
|
|
|
|
|
![build](https://api.travis-ci.com/dunwu/db-tutorial.svg?branch=master)
|
2019-03-02 22:11:43 +08:00
|
|
|
|
|
2020-06-03 19:32:09 +08:00
|
|
|
|
> 💾 **db-tutorial** 是一个数据库教程。
|
2019-07-02 21:29:24 +08:00
|
|
|
|
>
|
2019-10-10 18:20:37 +08:00
|
|
|
|
> - 🔁 项目同步维护:[Github](https://github.com/dunwu/db-tutorial/) | [Gitee](https://gitee.com/turnon/db-tutorial/)
|
|
|
|
|
> - 📖 电子书阅读:[Github Pages](https://dunwu.github.io/db-tutorial/) | [Gitee Pages](https://turnon.gitee.io/db-tutorial/)
|
2019-03-02 22:11:43 +08:00
|
|
|
|
|
2020-06-03 19:32:09 +08:00
|
|
|
|
## 📖 内容
|
|
|
|
|
|
|
|
|
|
### 关系型数据库
|
2019-03-02 22:11:43 +08:00
|
|
|
|
|
2020-02-10 14:27:39 +08:00
|
|
|
|
> [关系型数据库](sql) 整理主流关系型数据库知识点。
|
2020-01-15 23:21:02 +08:00
|
|
|
|
|
2020-07-16 11:14:07 +08:00
|
|
|
|
#### [共性知识](sql/common)
|
|
|
|
|
|
|
|
|
|
- [关系型数据库面试总结](sql/common/sql-interview.md) 💯
|
|
|
|
|
- [SQL Cheat Sheet](sql/common/sql-cheat-sheet.md) 是一个 SQL 入门教程。
|
2020-09-07 07:54:19 +08:00
|
|
|
|
- [分布式存储基本原理](https://github.com/dunwu/blog/blob/master/source/_posts/theory/distributed-storage.md)
|
2020-07-16 11:14:07 +08:00
|
|
|
|
- [分布式事务基本原理](https://github.com/dunwu/blog/blob/master/source/_posts/theory/distributed-transaction.md)
|
|
|
|
|
|
|
|
|
|
#### [Mysql](sql/mysql) 📚
|
|
|
|
|
|
2021-05-13 16:57:28 +08:00
|
|
|
|
![img](https://raw.githubusercontent.com/dunwu/images/dev/snap/20200716103611.png)
|
2020-07-16 11:14:07 +08:00
|
|
|
|
|
|
|
|
|
- [Mysql 应用指南](sql/mysql/mysql-quickstart.md) ⚡
|
2022-03-01 09:38:16 +08:00
|
|
|
|
- [Mysql 工作流](sql/mysql/mysql-workflow.md) - 关键词:`连接`、`缓存`、`语法分析`、`优化`、`执行引擎`、`redo log`、`bin log`、`两阶段提交`
|
2020-07-16 11:14:07 +08:00
|
|
|
|
- [Mysql 索引](sql/mysql/mysql-index.md) - 关键词:`Hash`、`B 树`、`聚簇索引`、`回表`
|
|
|
|
|
- [Mysql 锁](sql/mysql/mysql-lock.md) - 关键词:`乐观锁`、`表级锁`、`行级锁`、`意向锁`、`MVCC`、`Next-key 锁`
|
|
|
|
|
- [Mysql 事务](sql/mysql/mysql-transaction.md) - 关键词:`ACID`、`AUTOCOMMIT`、`事务隔离级别`、`死锁`、`分布式事务`
|
|
|
|
|
- [Mysql 性能优化](sql/mysql/mysql-optimization.md)
|
|
|
|
|
- [Mysql 运维](sql/mysql/mysql-ops.md) 🔨
|
|
|
|
|
- [Mysql 配置](sql/mysql/mysql-config.md)
|
|
|
|
|
- [Mysql 问题](sql/mysql/mysql-faq.md)
|
|
|
|
|
|
|
|
|
|
#### 其他关系型数据库
|
|
|
|
|
|
|
|
|
|
- [H2 应用指南](sql/h2.md)
|
|
|
|
|
- [SqLite 应用指南](sql/sqlite.md)
|
|
|
|
|
- [PostgreSQL 应用指南](sql/postgresql.md)
|
2020-01-15 23:21:02 +08:00
|
|
|
|
|
2020-06-03 19:32:09 +08:00
|
|
|
|
### Nosql 数据库
|
2020-01-15 23:21:02 +08:00
|
|
|
|
|
2020-02-10 14:27:39 +08:00
|
|
|
|
> [Nosql 数据库](nosql) 整理主流 Nosql 数据库知识点。
|
2020-01-15 23:21:02 +08:00
|
|
|
|
|
2020-02-09 02:18:58 +08:00
|
|
|
|
- [Nosql 技术选型](nosql/nosql-selection.md)
|
2020-06-03 20:16:48 +08:00
|
|
|
|
|
2020-07-16 11:14:07 +08:00
|
|
|
|
#### [Redis](nosql/redis) 📚
|
2020-06-03 20:16:48 +08:00
|
|
|
|
|
2021-05-13 16:57:28 +08:00
|
|
|
|
![img](https://raw.githubusercontent.com/dunwu/images/dev/snap/20200713105627.png)
|
2020-07-13 17:03:42 +08:00
|
|
|
|
|
2020-06-03 20:16:48 +08:00
|
|
|
|
- [Redis 面试总结](nosql/redis/redis-interview.md) 💯
|
2020-07-16 11:14:07 +08:00
|
|
|
|
- [Redis 应用指南](nosql/redis/redis-quickstart.md) ⚡ - 关键词:`内存淘汰`、`事件`、`事务`、`管道`、`发布与订阅`
|
2020-07-13 17:03:42 +08:00
|
|
|
|
- [Redis 数据类型和应用](nosql/redis/redis-datatype.md) - 关键词:`STRING`、`HASH`、`LIST`、`SET`、`ZSET`、`BitMap`、`HyperLogLog`、`Geo`
|
|
|
|
|
- [Redis 持久化](nosql/redis/redis-persistence.md) - 关键词:`RDB`、`AOF`、`SAVE`、`BGSAVE`、`appendfsync`
|
|
|
|
|
- [Redis 复制](nosql/redis/redis-replication.md) - 关键词:`SLAVEOF`、`SYNC`、`PSYNC`、`REPLCONF ACK`
|
|
|
|
|
- [Redis 哨兵](nosql/redis/redis-sentinel.md) - 关键词:`Sentinel`、`PING`、`INFO`、`Raft`
|
|
|
|
|
- [Redis 集群](nosql/redis/redis-cluster.md) - 关键词:`CLUSTER MEET`、`Hash slot`、`MOVED`、`ASK`、`SLAVEOF no one`、`redis-trib`
|
|
|
|
|
- [Redis 实战](nosql/redis/redis-action.md) - 关键词:`缓存`、`分布式锁`、`布隆过滤器`
|
|
|
|
|
- [Redis 运维](nosql/redis/redis-ops.md) 🔨 - 关键词:`安装`、`命令`、`集群`、`客户端`
|
2020-06-03 20:16:48 +08:00
|
|
|
|
|
2022-01-12 21:45:35 +08:00
|
|
|
|
#### [Elasticsearch](nosql/elasticsearch) 📚
|
2020-06-24 10:45:38 +08:00
|
|
|
|
|
2022-02-22 21:01:01 +08:00
|
|
|
|
> Elasticsearch 是一个基于 Lucene 的搜索和数据分析工具,它提供了一个分布式服务。Elasticsearch 是遵从 Apache 开源条款的一款开源产品,是当前主流的企业级搜索引擎。
|
|
|
|
|
|
2020-06-24 10:45:38 +08:00
|
|
|
|
- [Elasticsearch 面试总结](nosql/elasticsearch/elasticsearch-interview.md) 💯
|
2022-01-12 21:45:35 +08:00
|
|
|
|
- [Elasticsearch 快速入门](nosql/elasticsearch/Elasticsearch快速入门.md)
|
2022-02-22 21:01:01 +08:00
|
|
|
|
- [Elasticsearch 简介](nosql/elasticsearch/Elasticsearch简介.md)
|
2022-01-12 21:45:35 +08:00
|
|
|
|
- [Elasticsearch Rest API](nosql/elasticsearch/ElasticsearchRestApi.md)
|
2022-03-01 18:55:46 +08:00
|
|
|
|
- [ElasticSearch Java API 之 High Level REST Client](nosql/elasticsearch/ElasticsearchHighLevelRestJavaApi.md)
|
2022-02-22 21:01:01 +08:00
|
|
|
|
- [Elasticsearch 索引管理](nosql/elasticsearch/Elasticsearch索引管理.md)
|
|
|
|
|
- [Elasticsearch 查询](nosql/elasticsearch/Elasticsearch查询.md)
|
|
|
|
|
- [Elasticsearch 高亮](nosql/elasticsearch/Elasticsearch高亮.md)
|
|
|
|
|
- [Elasticsearch 排序](nosql/elasticsearch/Elasticsearch排序.md)
|
|
|
|
|
- [Elasticsearch 聚合](nosql/elasticsearch/Elasticsearch聚合.md)
|
|
|
|
|
- [Elasticsearch 分析器](nosql/elasticsearch/Elasticsearch分析器.md)
|
2022-01-12 21:45:35 +08:00
|
|
|
|
- [Elasticsearch 运维](nosql/elasticsearch/Elasticsearch运维.md)
|
2022-02-22 21:01:01 +08:00
|
|
|
|
- [Elasticsearch 性能优化](nosql/elasticsearch/Elasticsearch性能优化.md)
|
2020-06-24 10:45:38 +08:00
|
|
|
|
|
2020-06-03 20:16:48 +08:00
|
|
|
|
#### HBase
|
|
|
|
|
|
|
|
|
|
> [HBase](https://dunwu.github.io/bigdata-tutorial/hbase) 📚 因为常用于大数据项目,所以将其文档和源码整理在 [bigdata-tutorial](https://dunwu.github.io/bigdata-tutorial/) 项目中。
|
|
|
|
|
|
2021-11-08 08:10:14 +08:00
|
|
|
|
- [HBase 原理](https://github.com/dunwu/bigdata-tutorial/blob/master/docs/hbase/HBase原理.md) ⚡
|
|
|
|
|
- [HBase 命令](https://github.com/dunwu/bigdata-tutorial/blob/master/docs/hbase/HBase命令.md)
|
|
|
|
|
- [HBase 应用](https://github.com/dunwu/bigdata-tutorial/blob/master/docs/hbase/HBase应用.md)
|
|
|
|
|
- [HBase 运维](https://github.com/dunwu/bigdata-tutorial/blob/master/docs/hbase/HBase运维.md)
|
2020-02-09 02:18:58 +08:00
|
|
|
|
|
2022-02-22 21:01:01 +08:00
|
|
|
|
#### [MongoDB](nosql/mongodb) 📚
|
2020-09-09 20:47:14 +08:00
|
|
|
|
|
2022-02-22 21:01:01 +08:00
|
|
|
|
> MongoDB 是一个基于文档的分布式数据库,由 C++ 语言编写。旨在为 WEB 应用提供可扩展的高性能数据存储解决方案。
|
|
|
|
|
>
|
|
|
|
|
> MongoDB 是一个介于关系型数据库和非关系型数据库之间的产品。它是非关系数据库当中功能最丰富,最像关系数据库的。它支持的数据结构非常松散,是类似 json 的 bson 格式,因此可以存储比较复杂的数据类型。
|
|
|
|
|
>
|
|
|
|
|
> MongoDB 最大的特点是它支持的查询语言非常强大,其语法有点类似于面向对象的查询语言,几乎可以实现类似关系数据库单表查询的绝大部分功能,而且还支持对数据建立索引。
|
2020-09-12 10:43:53 +08:00
|
|
|
|
|
2020-09-09 20:47:14 +08:00
|
|
|
|
- [MongoDB 应用指南](nosql/mongodb/mongodb-quickstart.md)
|
2020-09-21 21:22:57 +08:00
|
|
|
|
- [MongoDB 聚合操作](nosql/mongodb/mongodb-aggregation.md)
|
2020-09-12 10:43:53 +08:00
|
|
|
|
- [MongoDB 建模](nosql/mongodb/mongodb-model.md)
|
|
|
|
|
- [MongoDB 建模示例](nosql/mongodb/mongodb-model-example.md)
|
2020-09-21 21:22:57 +08:00
|
|
|
|
- [MongoDB 索引](nosql/mongodb/mongodb-index.md)
|
|
|
|
|
- [MongoDB 复制](nosql/mongodb/mongodb-replication.md)
|
|
|
|
|
- [MongoDB 分片](nosql/mongodb/mongodb-sharding.md)
|
2020-09-09 20:47:14 +08:00
|
|
|
|
- [MongoDB 运维](nosql/mongodb/mongodb-ops.md)
|
|
|
|
|
|
2020-06-03 19:32:09 +08:00
|
|
|
|
### 中间件
|
2020-02-09 02:18:58 +08:00
|
|
|
|
|
2020-02-10 14:27:39 +08:00
|
|
|
|
- [版本管理中间件 flyway](middleware/flyway.md)
|
|
|
|
|
- [分库分表中间件 ShardingSphere](middleware/shardingsphere.md)
|
2020-06-03 19:32:09 +08:00
|
|
|
|
|
|
|
|
|
## 📚 资料
|
|
|
|
|
|
2022-02-22 21:01:01 +08:00
|
|
|
|
### Mysql 资料
|
|
|
|
|
|
|
|
|
|
- **官方**
|
|
|
|
|
- [Mysql 官网](https://www.mysql.com/)
|
|
|
|
|
- [Mysql 官方文档](https://dev.mysql.com/doc/refman/8.0/en/)
|
|
|
|
|
- [Mysql 官方文档之命令行客户端](https://dev.mysql.com/doc/refman/8.0/en/mysql.html)
|
|
|
|
|
- **书籍**
|
|
|
|
|
- [《高性能 MySQL》](https://book.douban.com/subject/23008813/) - 经典,适合 DBA 或作为开发者的参考手册
|
|
|
|
|
- [《MySQL 必知必会》](https://book.douban.com/subject/3354490/) - 适合入门者
|
|
|
|
|
- **教程**
|
|
|
|
|
- [runoob.com MySQL 教程](http://www.runoob.com/mysql/mysql-tutorial.html) - 入门级 SQL 教程
|
|
|
|
|
- [mysql-tutorial](https://github.com/jaywcjlove/mysql-tutorial)
|
|
|
|
|
- **更多资源**
|
|
|
|
|
- [awesome-mysql](https://github.com/jobbole/awesome-mysql-cn)
|
|
|
|
|
|
|
|
|
|
### Redis 资料
|
|
|
|
|
|
|
|
|
|
- **官网**
|
|
|
|
|
- [Redis 官网](https://redis.io/)
|
|
|
|
|
- [Redis github](https://github.com/antirez/redis)
|
|
|
|
|
- [Redis 官方文档中文版](http://redis.cn/)
|
|
|
|
|
- [Redis 命令参考](http://redisdoc.com/)
|
|
|
|
|
- **书籍**
|
|
|
|
|
- [《Redis 实战》](https://item.jd.com/11791607.html)
|
|
|
|
|
- [《Redis 设计与实现》](https://item.jd.com/11486101.html)
|
|
|
|
|
- **源码**
|
|
|
|
|
- [《Redis 实战》配套 Python 源码](https://github.com/josiahcarlson/redis-in-action)
|
|
|
|
|
- **资源汇总**
|
|
|
|
|
- [awesome-redis](https://github.com/JamzyWang/awesome-redis)
|
|
|
|
|
- **Redis Client**
|
|
|
|
|
- [spring-data-redis 官方文档](https://docs.spring.io/spring-data/redis/docs/1.8.13.RELEASE/reference/html/)
|
|
|
|
|
- [redisson 官方文档(中文,略有滞后)](https://github.com/redisson/redisson/wiki/%E7%9B%AE%E5%BD%95)
|
|
|
|
|
- [redisson 官方文档(英文)](https://github.com/redisson/redisson/wiki/Table-of-Content)
|
|
|
|
|
- [CRUG | Redisson PRO vs. Jedis: Which Is Faster? 翻译](https://www.jianshu.com/p/82f0d5abb002)
|
|
|
|
|
- [redis 分布锁 Redisson 性能测试](https://blog.csdn.net/everlasting_188/article/details/51073505)
|
|
|
|
|
|
|
|
|
|
### MongoDB 资料
|
|
|
|
|
|
|
|
|
|
- **官方**
|
|
|
|
|
- [MongoDB 官网](https://www.mongodb.com/)
|
|
|
|
|
- [MongoDB Github](https://github.com/mongodb/mongo)
|
|
|
|
|
- [MongoDB 官方免费教程](https://university.mongodb.com/)
|
|
|
|
|
- **教程**
|
|
|
|
|
- [MongoDB 教程](https://www.runoob.com/mongodb/mongodb-tutorial.html)
|
|
|
|
|
- [MongoDB 高手课](https://time.geekbang.org/course/intro/100040001)
|
|
|
|
|
- **数据**
|
|
|
|
|
- [mongodb-json-files](https://github.com/ozlerhakan/mongodb-json-files)
|
|
|
|
|
- **文章**
|
|
|
|
|
- [Introduction to MongoDB](https://www.slideshare.net/mdirolf/introduction-to-mongodb)
|
2020-06-03 19:32:09 +08:00
|
|
|
|
|
2020-07-16 11:14:07 +08:00
|
|
|
|
## 🚪 传送
|
2020-06-16 07:10:44 +08:00
|
|
|
|
|
2020-07-16 11:14:07 +08:00
|
|
|
|
◾ 🏠 [DB-TUTORIAL 首页](https://github.com/dunwu/db-tutorial) ◾ 🎯 [我的博客](https://github.com/dunwu/blog) ◾
|