摘要: [TOC] 1、没有锁CASE 8.0.18 RC CREATE TABLE ( int(11) NOT NULL AUTO_INCREMENT, varchar(10) COLLATE utf8mb4_bin DEFAULT NULL, int(11) NOT NULL DEFAULT '1', 阅读全文
posted @ 2019-12-19 18:10 DBA_AJ 阅读(2155) 评论(0) 推荐(0) 编辑
摘要: dba_aj@163.com 2018年7月12日星期四 MySQL安装和升级 1、概述2、安装环境1. 版本说明2. 安装介质3. 目录规划4. 用户规划5. 防火墙配置6. 修改资源限制3、二进制安装MySQL数据库1. 上传和解压2. my.cnf配置3. 初始化数据库4. PATH变量设置4 阅读全文
posted @ 2019-08-20 10:19 DBA_AJ 阅读(215) 评论(0) 推荐(0) 编辑
摘要: 2019/8/8 1.过程解析1. 检查校验环境2. 创建binlog streamer连接到主库或者从库,添加binlog的监听3. 创建log表 _xxx_ghc 和ghost表 _xxx_gho并修改ghost表结构到最新4. row-copy & apply-binlog5. cut-over 阶段6. 收尾2. 日志3. 其他文档TOC 1.过程解析 1. 检查校验环境 ... 阅读全文
posted @ 2019-08-08 15:46 DBA_AJ 阅读(532) 评论(0) 推荐(0) 编辑
摘要: 一、排序实现1.全字段排序1.1排序过程1.2临时文件2. rowid 排序3. 对比总结二、一个索引优化的case优化总结TOC 一、排序实现 SELECT city, name, age FROM t WHERE city='杭州' ORDER BY name LIMIT 1000 ; 1.全字段排序 1.1排序过程 初始化sort_buffer... 阅读全文
posted @ 2019-07-27 19:28 DBA_AJ 阅读(449) 评论(0) 推荐(0) 编辑
摘要: 1. Download2. Install2.1 Windows Install2.2 Macos install3. 一些跳帧他3.1 调整配色3.2 设置回滚区3.3 设置字体、编码、光标、高亮单词3.4 编码3.5 光标3.6 设置高亮单词3.7 自动记录日志3.8 设置自动登录3.9 快速命令按钮TOC 1. Download windows 链接: https://pan.bai... 阅读全文
posted @ 2019-05-23 14:00 DBA_AJ 阅读(327) 评论(0) 推荐(0) 编辑
摘要: 1. 启用wsl并安装ubuntu 16.041. 安装ubuntu 16.041.2 ubuntu16 开启sshd服务SecureCRT 访问2. Ubuntu apt换源TOC 1. 启用wsl并安装ubuntu 16.04 1. 安装ubuntu 16.04 win10 设置 -- 更新和安全 -- 开发者选项 -- 开发人员模式 控制面板 -- 程序 -- 启用或者关... 阅读全文
posted @ 2019-05-15 16:57 DBA_AJ 阅读(638) 评论(0) 推荐(0) 编辑
摘要: dba_aj@163.com 2018年8月25日星期六 Python 安装 1、源码安装Python3.61.1 Centos6 源码安装python 3.61.2 Ubuntu16 源码安装python32. pip安装和换源2.1 安装源码Python直接带了pip2.2 centos 安装p 阅读全文
posted @ 2019-05-15 16:56 DBA_AJ 阅读(242) 评论(0) 推荐(0) 编辑
摘要: 1. WSL 安装3. 安装Inception4. 启动5. 参数解释TOC https://github.com/cookieY/inception-document/blob/master/docs/install.md 1. WSL 安装 见 D01 Win10-WSL-Ubuntu16 安装 3. 安装Inception ubuntu16安装,不要选择ubuntu18... 阅读全文
posted @ 2019-05-15 16:53 DBA_AJ 阅读(240) 评论(0) 推荐(0) 编辑
摘要: 1. WSL ubuntu16 安装2. 安装SQLAdvisor3. 使用和测试TOC 1. WSL ubuntu16 安装 略 2. 安装SQLAdvisor 1、拉代码 git clone https://github.com/Meituan-Dianping/SQLAdvisor 或者下载在解压 2、装依赖 apt-get install cmake libaio-de... 阅读全文
posted @ 2019-05-15 16:51 DBA_AJ 阅读(343) 评论(2) 推荐(0) 编辑
摘要: 1. 语法1.1 选项:1.2 常用参数2. 例子2.1 删除老数据2.2 归档2.3 pt-archiver 测试对表数据重复插入主键非递增类型 TOC https://www.cnblogs.com/zhoujinyi/p/9925508.html 1. 语法 注意:pt-archiver操作的 阅读全文
posted @ 2019-05-13 11:57 DBA_AJ 阅读(260) 评论(0) 推荐(0) 编辑