2019年7月12日

docker基础

摘要: [toc] 安装 https://docs.docker.com/install/ https://docs.docker.com/install/linux/docker ce/centos/ https://docs.docker.com/install/linux/docker ce/bina 阅读全文

posted @ 2019-07-12 16:09 cucy_to 阅读(315) 评论(0) 推荐(0) 编辑

2018年4月21日

不同场景下 MySQL 的迁移方案

摘要: 不同场景下 MySQL 的迁移方案 一 目录 一 目录 二 为什么要迁移 三 MySQL 迁移方案概览 四 MySQL 迁移实战 4.1 场景一 一主一从结构迁移从库 4.2 场景二 一主一从结构迁移指定库 4.3 场景三 一主一从结构双边迁移指定库 4.4 场景四 一主一从结构完整迁移主从 4.5 阅读全文

posted @ 2018-04-21 18:13 cucy_to 阅读(279) 评论(0) 推荐(0) 编辑

通用二进制包安装 MySQL5.5

摘要: 修改文件句柄vim /etc/security/limits.conf# 修改* soft nofile 65535* hard nofile 65535添加用户useradd -s /usr/sbin/nologin mysqlmkdir -p /home/mysqldatachown -R my 阅读全文

posted @ 2018-04-21 17:08 cucy_to 阅读(140) 评论(0) 推荐(0) 编辑

通用二进制包安装5.6

摘要: 安装依赖 yum install libaio perl-Data-Dumper -y 用户添加 useradd -r -s /usr/sbin/nologin mysql ``` # 下载解压 ```bash cd /usr/local wget http://cdn.mysql.com/arch 阅读全文

posted @ 2018-04-21 17:07 cucy_to 阅读(149) 评论(0) 推荐(0) 编辑

xtrabackup 备份

摘要: xtrabackup备份简介xtrabackup是一个percona开源数据库备份软件,innobackupex则封装了xtrabackup,是一个脚本封装,所以能同时备份处理innodb和myisam,但在处理myisam时需要加一个读锁,对InnoDB存储引擎实现热备;备份原理: 开始备份前,i 阅读全文

posted @ 2018-04-21 17:03 cucy_to 阅读(209) 评论(0) 推荐(0) 编辑

2018年3月27日

MySQL5.7通用二进制包安装

摘要: 5.7 安装 下载 https://downloads.mysql.com/archives/community/ 官网下载比较慢,国内镜像站可以加速下载,下载完成校验md5是否一致 http://mirrors.ustc.edu.cn/mysql-ftp/Downloads/MySQL-5.7/ 阅读全文

posted @ 2018-03-27 01:09 cucy_to 阅读(180) 评论(0) 推荐(0) 编辑

10.7 Propagating errors with errgroup

摘要: go package main import ( "bufio" "context" "fmt" "log" "strings" "golang.org/x/sync/errgroup" ) const data = `line one line two with more words error: 阅读全文

posted @ 2018-03-27 01:06 cucy_to 阅读(208) 评论(0) 推荐(0) 编辑

10.6 Getting the fastest result from multiple sources

摘要: go package main import ( "context" "fmt" "sync" "time" ) type SearchSrc struct { ID string Delay int } func (s SearchSrc) Search(ctx context.Context) 阅读全文

posted @ 2018-03-27 00:58 cucy_to 阅读(129) 评论(0) 推荐(0) 编辑

10.5 Synchronizing goroutines with WaitGroup

摘要: go package main import "sync" import "fmt" func main() { wg := sync.WaitGroup{} for i := 0; i 阅读全文

posted @ 2018-03-27 00:53 cucy_to 阅读(130) 评论(0) 推荐(0) 编辑

10.4 Pooling resources across multiple goroutines 集中访问资源

摘要: go package main import "sync" import "fmt" import "time" type Worker struct { id string } func (w Worker) String() string { return w.id } var globalCo 阅读全文

posted @ 2018-03-27 00:47 cucy_to 阅读(174) 评论(0) 推荐(0) 编辑

导航