Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
CSDN 技术社区
skill_tree_mysql
提交
a6c5bbe0
S
skill_tree_mysql
项目概览
CSDN 技术社区
/
skill_tree_mysql
通知
21
Star
0
Fork
1
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
S
skill_tree_mysql
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1
Issue
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
a6c5bbe0
编写于
6月 07, 2022
作者:
M
Mars Liu
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
disaster recovery
上级
769a1eed
变更
16
隐藏空白更改
内联
并排
Showing
16 changed file
with
117 addition
and
190 deletion
+117
-190
data/2.MySQL中阶/3.聚合和分组/7.WITH ROLLUP/config.json
data/2.MySQL中阶/3.聚合和分组/7.WITH ROLLUP/config.json
+0
-12
data/2.MySQL中阶/6. 索引/3.删除索引/drop_index.json
data/2.MySQL中阶/6. 索引/3.删除索引/drop_index.json
+1
-1
data/2.MySQL中阶/8.备份与恢复/2.mysqldumper/config.json
data/2.MySQL中阶/8.备份与恢复/2.mysqldumper/config.json
+0
-10
data/2.MySQL中阶/8.备份与恢复/2.数据导入和导出/config.json
data/2.MySQL中阶/8.备份与恢复/2.数据导入和导出/config.json
+0
-0
data/2.MySQL中阶/8.备份与恢复/3.mysqlhotcopy/config.json
data/2.MySQL中阶/8.备份与恢复/3.mysqlhotcopy/config.json
+0
-10
data/2.MySQL中阶/8.备份与恢复/3.灾难恢复/config.json
data/2.MySQL中阶/8.备份与恢复/3.灾难恢复/config.json
+9
-3
data/2.MySQL中阶/8.备份与恢复/3.灾难恢复/disaster_recovery.json
data/2.MySQL中阶/8.备份与恢复/3.灾难恢复/disaster_recovery.json
+4
-3
data/2.MySQL中阶/8.备份与恢复/3.灾难恢复/disaster_recovery.md
data/2.MySQL中阶/8.备份与恢复/3.灾难恢复/disaster_recovery.md
+45
-0
data/2.MySQL中阶/8.备份与恢复/3.灾难恢复/dr_options.json
data/2.MySQL中阶/8.备份与恢复/3.灾难恢复/dr_options.json
+8
-0
data/2.MySQL中阶/8.备份与恢复/3.灾难恢复/dr_options.md
data/2.MySQL中阶/8.备份与恢复/3.灾难恢复/dr_options.md
+36
-0
data/2.MySQL中阶/8.备份与恢复/4.xtrabackup/config.json
data/2.MySQL中阶/8.备份与恢复/4.xtrabackup/config.json
+0
-10
data/2.MySQL中阶/8.备份与恢复/5.完全备份和增量备份/config.json
data/2.MySQL中阶/8.备份与恢复/5.完全备份和增量备份/config.json
+0
-10
data/2.MySQL中阶/8.备份与恢复/7.自动备份/config.json
data/2.MySQL中阶/8.备份与恢复/7.自动备份/config.json
+0
-10
data/3.MySQL高阶/7.查询优化/4. PT-QUERY-DIGEST分析查询/config.json
data/3.MySQL高阶/7.查询优化/4. PT-QUERY-DIGEST分析查询/config.json
+0
-10
data/3.MySQL高阶/7.查询优化/5.子查询优化/config.json
data/3.MySQL高阶/7.查询优化/5.子查询优化/config.json
+0
-10
data/tree.json
data/tree.json
+14
-101
未找到文件。
data/2.MySQL中阶/3.聚合和分组/7.WITH ROLLUP/config.json
已删除
100644 → 0
浏览文件 @
769a1eed
{
"node_id"
:
"mysql-91829d4938034ce09e99badf23dbebf6"
,
"keywords"
:
[],
"children"
:
[],
"export"
:
[],
"keywords_must"
:
[
[
"mysql"
,
"WITH ROLLUP"
]
],
"keywords_forbid"
:
[],
"group"
:
0
}
\ No newline at end of file
data/2.MySQL中阶/6. 索引/3.删除索引/drop_index.json
浏览文件 @
a6c5bbe0
{
{
"type"
:
"code_options"
,
"type"
:
"code_options"
,
"author"
:
null
,
"author"
:
"Mars"
,
"source"
:
"drop_index.md"
,
"source"
:
"drop_index.md"
,
"notebook_enable"
:
false
,
"notebook_enable"
:
false
,
"exercise_id"
:
"f786df4790e0407b91348a0fad24220f"
"exercise_id"
:
"f786df4790e0407b91348a0fad24220f"
...
...
data/2.MySQL中阶/8.备份与恢复/2.mysqldumper/config.json
已删除
100644 → 0
浏览文件 @
769a1eed
{
"node_id"
:
"mysql-40cf0134521849d891d6135e2316491a"
,
"keywords"
:
[
"mysqldumper"
],
"children"
:
[],
"export"
:
[],
"keywords_must"
:
[],
"keywords_forbid"
:
[],
"group"
:
0
}
\ No newline at end of file
data/2.MySQL中阶/8.备份与恢复/
8
.数据导入和导出/config.json
→
data/2.MySQL中阶/8.备份与恢复/
2
.数据导入和导出/config.json
浏览文件 @
a6c5bbe0
文件已移动
data/2.MySQL中阶/8.备份与恢复/3.mysqlhotcopy/config.json
已删除
100644 → 0
浏览文件 @
769a1eed
{
"node_id"
:
"mysql-0b976462e6314fa499a9f086c0eded8f"
,
"keywords"
:
[
"mysqlhotcopy"
],
"children"
:
[],
"export"
:
[],
"keywords_must"
:
[],
"keywords_forbid"
:
[],
"group"
:
0
}
\ No newline at end of file
data/2.MySQL中阶/8.备份与恢复/
6
.灾难恢复/config.json
→
data/2.MySQL中阶/8.备份与恢复/
3
.灾难恢复/config.json
浏览文件 @
a6c5bbe0
{
{
"node_id"
:
"mysql-76b4d2f260f94ea1a6692d5a8dab2709"
,
"node_id"
:
"mysql-76b4d2f260f94ea1a6692d5a8dab2709"
,
"keywords"
:
[
"灾难恢复"
],
"keywords"
:
[
"灾难恢复"
],
"children"
:
[],
"children"
:
[],
"export"
:
[],
"export"
:
[
"disaster_recovery.json"
,
"dr_options.json"
],
"keywords_must"
:
[],
"keywords_must"
:
[],
"keywords_forbid"
:
[],
"keywords_forbid"
:
[],
"group"
:
0
"group"
:
2
}
}
\ No newline at end of file
data/2.MySQL中阶/
4.子查询/6. 列子查询/in_clumn
.json
→
data/2.MySQL中阶/
8.备份与恢复/3.灾难恢复/disaster_recovery
.json
浏览文件 @
a6c5bbe0
{
{
"type"
:
"code_options"
,
"type"
:
"code_options"
,
"author"
:
"
ccat
"
,
"author"
:
"
Mars
"
,
"source"
:
"
in_column
.md"
,
"source"
:
"
disaster_recovery
.md"
,
"notebook_enable"
:
false
,
"notebook_enable"
:
false
,
"exercise_id"
:
"
2ded48602e384fc2b5476186e8b91842
"
"exercise_id"
:
"
abca6ad634a74d09ba5cf44ab2510bfb
"
}
}
\ No newline at end of file
data/2.MySQL中阶/8.备份与恢复/3.灾难恢复/disaster_recovery.md
0 → 100644
浏览文件 @
a6c5bbe0
# 灾难恢复
Joe 管理的一台 MySQL 服务器因意外断电,出现了文件损坏,无法启动。他需要将这台服务器恢复起来,下列步骤中哪些是需要执行的?
1.
在 my.cnf 中的
`[mysqld]`
一节添加
`innodb_force_recovery = 1`
。
2.
尝试启动,如果失败,尝试 2 ~ 6 间的其它参数
3.
启动后备份数据库
4.
删除数据库,清理数据目录
5.
备份 MySQL 数据目录下的 ib_logfile
\*
和 ibdata
\*
文件,然后删除
6.
将 my.cnf 中的
`innodb_force_recovery`
设为0
7.
重启MySQL
8.
导入数据
## 答案
```
1, 2, 3, 4, 5, 6, 7, 8
```
## 选项
### A
```
1, 2, 4, 5, 6, 8
```
### B
```
1, 2, 4, 5, 8
```
### C
```
1, 2, 4, 8
```
### D
```
1, 2, 3, 4, 6, 7, 8
```
data/2.MySQL中阶/8.备份与恢复/3.灾难恢复/dr_options.json
0 → 100644
浏览文件 @
a6c5bbe0
{
"type"
:
"code_options"
,
"author"
:
"Mars"
,
"source"
:
"disaster_recovery.md"
,
"notebook_enable"
:
false
,
"exercise_id"
:
"d971d72cd46f4bd38b0205b9a06f3798"
}
\ No newline at end of file
data/2.MySQL中阶/8.备份与恢复/3.灾难恢复/dr_options.md
0 → 100644
浏览文件 @
a6c5bbe0
# 灾难恢复选项
设定
`innodb_force_recovery`
的值时,可选的有哪些?
1.
(SRV_FORCE_IGNORE_CORRUPT):忽略损坏的数据页,继续运行MySQL服务。
2.
(SRV_FORCE_NO_BACKGROUND):防止主线程和任何清除线程运行。如果清除操作期间发生崩溃,则此恢复值将阻止崩溃。
3.
(SRV_FORCE_NO_TRX_UNDO):在崩溃后不运行事务回滚操作。
4.
(SRV_FORCE_NO_IBUF_MERGE):不执行插入缓冲的合并操作,此值可能会永久损坏数据文件。使用此值后,需要删除并重新创建所有辅助索引,并且需要将InnoDB设置为只读。
5.
(SRV_FORCE_NO_UNDO_LOG_SCAN):不查看重做日志,InnoDB存储引擎会将未提交的事务视为已提交。此值可能会永久损坏数据文件,需要将InnoDB设置为只读。
6.
(SRV_FORCE_NO_LOG_REDO):不执行与恢复相关重做日志的前滚操作。此值可能会永久损坏数据文件,使数据库页处于过时状态,这反过来又可能导致B树和其他数据库结构的损坏,需要将InnoDB设置为只读。
## 答案
全部都是
## 选项
### A
```
2, 3, 4, 5
```
### B
```
1, 2, 3, 4, 5
```
### C
```
1, 2, 4
```
\ No newline at end of file
data/2.MySQL中阶/8.备份与恢复/4.xtrabackup/config.json
已删除
100644 → 0
浏览文件 @
769a1eed
{
"node_id"
:
"mysql-6064766016164bfebb475090c0979d2a"
,
"keywords"
:
[],
"children"
:
[],
"export"
:
[],
"keywords_must"
:
[],
"keywords_forbid"
:
[],
"group"
:
0
}
\ No newline at end of file
data/2.MySQL中阶/8.备份与恢复/5.完全备份和增量备份/config.json
已删除
100644 → 0
浏览文件 @
769a1eed
{
"node_id"
:
"mysql-1c793163cd8047e1a3b327f2c86a1f68"
,
"keywords"
:
[],
"children"
:
[],
"export"
:
[],
"keywords_must"
:
[],
"keywords_forbid"
:
[],
"group"
:
0
}
\ No newline at end of file
data/2.MySQL中阶/8.备份与恢复/7.自动备份/config.json
已删除
100644 → 0
浏览文件 @
769a1eed
{
"node_id"
:
"mysql-3c8b76e8fa914a7a87c74f511fd39680"
,
"keywords"
:
[],
"children"
:
[],
"export"
:
[],
"keywords_must"
:
[],
"keywords_forbid"
:
[],
"group"
:
0
}
\ No newline at end of file
data/3.MySQL高阶/7.查询优化/4. PT-QUERY-DIGEST分析查询/config.json
已删除
100644 → 0
浏览文件 @
769a1eed
{
"node_id"
:
"mysql-626f1ca763b344558b3a5eefdb4885a2"
,
"keywords"
:
[
"pt-query-digest"
,
"优化"
],
"children"
:
[],
"export"
:
[],
"keywords_must"
:
[],
"keywords_forbid"
:
[],
"group"
:
0
}
\ No newline at end of file
data/3.MySQL高阶/7.查询优化/5.子查询优化/config.json
已删除
100644 → 0
浏览文件 @
769a1eed
{
"node_id"
:
"mysql-4d5cfac3820648ffbe0b382898d9cf26"
,
"keywords"
:
[
"subquery"
],
"children"
:
[],
"export"
:
[],
"keywords_must"
:
[],
"keywords_forbid"
:
[],
"group"
:
0
}
\ No newline at end of file
data/tree.json
浏览文件 @
a6c5bbe0
...
@@ -973,21 +973,6 @@
...
@@ -973,21 +973,6 @@
"keywords_forbid"
:
[],
"keywords_forbid"
:
[],
"group"
:
1
"group"
:
1
}
}
},
{
"WITH ROLLUP"
:
{
"node_id"
:
"mysql-91829d4938034ce09e99badf23dbebf6"
,
"keywords"
:
[],
"children"
:
[],
"keywords_must"
:
[
[
"mysql"
,
"WITH ROLLUP"
]
],
"keywords_forbid"
:
[],
"group"
:
0
}
}
}
],
],
"keywords_must"
:
[],
"keywords_must"
:
[],
...
@@ -1072,7 +1057,11 @@
...
@@ -1072,7 +1057,11 @@
{
{
" IN"
:
{
" IN"
:
{
"node_id"
:
"mysql-8436069c855c4f1ead7cf11a026e004b"
,
"node_id"
:
"mysql-8436069c855c4f1ead7cf11a026e004b"
,
"keywords"
:
[],
"keywords"
:
[
"in"
,
"subquery"
,
"子查询"
],
"children"
:
[],
"children"
:
[],
"keywords_must"
:
[
"keywords_must"
:
[
[
[
...
@@ -1083,7 +1072,7 @@
...
@@ -1083,7 +1072,7 @@
"keywords_forbid"
:
[
"keywords_forbid"
:
[
"not in"
"not in"
],
],
"group"
:
0
"group"
:
1
}
}
},
},
{
{
...
@@ -1304,11 +1293,14 @@
...
@@ -1304,11 +1293,14 @@
{
{
"错误日志"
:
{
"错误日志"
:
{
"node_id"
:
"mysql-7645195ec078406c9303d39ea9c3738c"
,
"node_id"
:
"mysql-7645195ec078406c9303d39ea9c3738c"
,
"keywords"
:
[],
"keywords"
:
[
"日志"
,
"错误日志"
],
"children"
:
[],
"children"
:
[],
"keywords_must"
:
[],
"keywords_must"
:
[],
"keywords_forbid"
:
[],
"keywords_forbid"
:
[],
"group"
:
0
"group"
:
2
}
}
},
},
{
{
...
@@ -1345,42 +1337,8 @@
...
@@ -1345,42 +1337,8 @@
}
}
},
},
{
{
"mysqldumper"
:
{
"数据导入和导出"
:
{
"node_id"
:
"mysql-40cf0134521849d891d6135e2316491a"
,
"node_id"
:
"mysql-e2eefb85984643f8adb95f4eee16bc8f"
,
"keywords"
:
[
"mysqldumper"
],
"children"
:
[],
"keywords_must"
:
[],
"keywords_forbid"
:
[],
"group"
:
0
}
},
{
"mysqlhotcopy"
:
{
"node_id"
:
"mysql-0b976462e6314fa499a9f086c0eded8f"
,
"keywords"
:
[
"mysqlhotcopy"
],
"children"
:
[],
"keywords_must"
:
[],
"keywords_forbid"
:
[],
"group"
:
0
}
},
{
"xtrabackup"
:
{
"node_id"
:
"mysql-6064766016164bfebb475090c0979d2a"
,
"keywords"
:
[],
"children"
:
[],
"keywords_must"
:
[],
"keywords_forbid"
:
[],
"group"
:
0
}
},
{
"完全备份和增量备份"
:
{
"node_id"
:
"mysql-1c793163cd8047e1a3b327f2c86a1f68"
,
"keywords"
:
[],
"keywords"
:
[],
"children"
:
[],
"children"
:
[],
"keywords_must"
:
[],
"keywords_must"
:
[],
...
@@ -1397,27 +1355,7 @@
...
@@ -1397,27 +1355,7 @@
"children"
:
[],
"children"
:
[],
"keywords_must"
:
[],
"keywords_must"
:
[],
"keywords_forbid"
:
[],
"keywords_forbid"
:
[],
"group"
:
0
"group"
:
2
}
},
{
"自动备份"
:
{
"node_id"
:
"mysql-3c8b76e8fa914a7a87c74f511fd39680"
,
"keywords"
:
[],
"children"
:
[],
"keywords_must"
:
[],
"keywords_forbid"
:
[],
"group"
:
0
}
},
{
"数据导入和导出"
:
{
"node_id"
:
"mysql-e2eefb85984643f8adb95f4eee16bc8f"
,
"keywords"
:
[],
"children"
:
[],
"keywords_must"
:
[],
"keywords_forbid"
:
[],
"group"
:
0
}
}
}
}
],
],
...
@@ -2266,31 +2204,6 @@
...
@@ -2266,31 +2204,6 @@
"keywords_forbid"
:
[],
"keywords_forbid"
:
[],
"group"
:
0
"group"
:
0
}
}
},
{
" PT-QUERY-DIGEST分析查询"
:
{
"node_id"
:
"mysql-626f1ca763b344558b3a5eefdb4885a2"
,
"keywords"
:
[
"pt-query-digest"
,
"优化"
],
"children"
:
[],
"keywords_must"
:
[],
"keywords_forbid"
:
[],
"group"
:
0
}
},
{
"子查询优化"
:
{
"node_id"
:
"mysql-4d5cfac3820648ffbe0b382898d9cf26"
,
"keywords"
:
[
"subquery"
],
"children"
:
[],
"keywords_must"
:
[],
"keywords_forbid"
:
[],
"group"
:
0
}
}
}
],
],
"keywords_must"
:
[],
"keywords_must"
:
[],
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录