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) ⚡
|
|
|
|
- [Mysql 工作流](sql/mysql/mysql-index.md) - 关键词:`连接`、`缓存`、`语法分析`、`优化`、`执行引擎`、`redo log`、`bin log`、`两阶段提交`
|
|
|
|
- [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
|
|
|
|
2020-06-24 10:45:38 +08:00
|
|
|
#### Elasticsearch
|
|
|
|
|
|
|
|
> [Elasticsearch](nosql/elasticsearch) 📚
|
|
|
|
|
|
|
|
- [Elasticsearch 面试总结](nosql/elasticsearch/elasticsearch-interview.md) 💯
|
|
|
|
- [ElasticSearch 应用指南](nosql/elasticsearch/elasticsearch-quickstart.md)
|
2022-01-08 20:37:29 +08:00
|
|
|
- [ElasticSearch API](nosql/elasticsearch/ElasticSearchRestApi.md)
|
2020-06-24 10:45:38 +08:00
|
|
|
- [ElasticSearch 运维](nosql/elasticsearch/elasticsearch-ops.md)
|
|
|
|
|
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
|
|
|
|
2020-09-09 20:47:14 +08:00
|
|
|
#### MongoDB
|
|
|
|
|
2020-09-12 10:43:53 +08:00
|
|
|
> [MongoDB](nosql/mongodb) 📚
|
|
|
|
|
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
|
|
|
|
|
|
|
## 📚 资料
|
|
|
|
|
|
|
|
- **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/)
|
2020-06-24 10:45:38 +08:00
|
|
|
- [Redis 命令参考](http://redisdoc.com/)
|
2020-06-03 19:32:09 +08:00
|
|
|
- **书籍**
|
|
|
|
- [《Redis 实战》](https://item.jd.com/11791607.html)
|
|
|
|
- [《Redis 设计与实现》](https://item.jd.com/11486101.html)
|
2020-07-16 11:14:07 +08:00
|
|
|
- **源码**
|
2020-06-03 19:32:09 +08:00
|
|
|
- [《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)
|
|
|
|
|
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) ◾
|