摘要: 官网地址:https://docs.mongodb.com/manual/introduction/#document-database High Performance Rich Query Language High Availability Horizontal Scalability Sup 阅读全文
posted @ 2018-07-31 13:44 Time.catcher 阅读(211) 评论(0) 推荐(0) 编辑
摘要: l凌晨1点开发迁移业务告知sql响应有问题,赶紧爬起来看看 6000w的大表,没走索引导致查询了50s,执行计划如下 使用了in导致查询没有走索引改写为union all sql秒出结果 看下执行计划 阅读全文
posted @ 2018-07-03 10:50 Time.catcher 阅读(369) 评论(0) 推荐(0) 编辑
摘要: 由于业务需要需要同步数据Oracle到MySQL使用工具OGG OGG常用命令总结 阅读全文
posted @ 2018-07-03 10:27 Time.catcher 阅读(2567) 评论(0) 推荐(0) 编辑
摘要: 说来好巧~前段时间正在写数据恢复应急预案,周一开发就delete掉表了,不慌不忙给恢复了,之后要经常做数据库恢复预演,加快数据的恢复时间 开源工具地址: https://github.com/danfengcao/binlog2sql 误drop表恢复,使用mysqldump备份 1.ddl删除表不 阅读全文
posted @ 2018-07-03 09:41 Time.catcher 阅读(2690) 评论(0) 推荐(0) 编辑
摘要: 备份脚本 常用命令 阅读全文
posted @ 2018-05-29 14:23 Time.catcher 阅读(276) 评论(0) 推荐(0) 编辑
摘要: sql_log_bin SET sql_log_bin = {0|1} 官网地址 https://dev.mysql.com/doc/refman/8.0/en/set-sql-log-bin.html 阅读全文
posted @ 2018-05-28 13:45 Time.catcher 阅读(1765) 评论(0) 推荐(0) 编辑
摘要: MySQL数据库修改字符集,介绍一下修改的方法 1)系统工具iconv 2)导出导入sed 3)alter table的方式 阅读全文
posted @ 2018-05-28 13:42 Time.catcher 阅读(1107) 评论(0) 推荐(0) 编辑
摘要: 早上看监控发现页面无法展示,于是登陆zabbix server主机,发现 /data分区 %100 赶紧看下是因为什么数据导致的(其实我知道是因为zabbix历史表导致/data分区爆满的主要写一下处理的思路) 看下果然因为 history_uint表导致的, 登陆zabbix,因为是刚入职,不熟悉 阅读全文
posted @ 2018-05-25 13:27 Time.catcher 阅读(1893) 评论(1) 推荐(0) 编辑
摘要: 官网地址:https://dev.mysql.com/doc/refman/8.0/en/entering-queries.html 最近开始通读官方文档,可以学习到好知识,记录下来 Keywords may be entered in any lettercase. The following q 阅读全文
posted @ 2018-05-25 09:17 Time.catcher 阅读(419) 评论(0) 推荐(0) 编辑
摘要: case 变量 in 模式1) 命令序列1 ;; 模式2) 命令序列2 ;; 模式3) 命令序列3 *) 无匹配后命令序列 easc 阅读全文
posted @ 2017-04-19 21:30 Time.catcher 阅读(1195) 评论(0) 推荐(0) 编辑