摘要:
##mysql正在执行的sql select * from information_schema.PROCESSLIST where info is not null; show processlist; show processlist 能看到所有库以及用户的执行情况 阅读全文
posted @ 2021-06-29 17:15
whiteY
阅读(198)
评论(0)
推荐(0)
摘要:
###1.查找指定字符串的前后n行 grep -A 100 -B 100 "要查找的字符串" 被查找的文件 -A after 后面 -B before 前面 ###2.查找指定字符串出现的行 grep -n "要查找的字符串" 被查找的文件 ###3.查找指定字符出现为止的上下n行 grep -C 阅读全文
posted @ 2021-06-29 17:09
whiteY
阅读(2124)
评论(0)
推荐(0)
摘要:
###当前操作不记录binlog 主从架构和双主架构数据不一致情况下 如果想在主库上执行一些操作,但不复制到slave库上,可以通过修改参数sql_log_bin来实现。 比如想在主库上修改某个表的数据,但是在slave库上不做修改: 设为0后,在Master数据库上执行的语句都不记录binlog 阅读全文
posted @ 2021-06-29 16:33
whiteY
阅读(241)
评论(0)
推荐(0)
摘要:
###下载链接 https://www.percona.com/downloads/percona-toolkit/LATEST/ ###官方文档 https://www.percona.com/doc/percona-toolkit/LATEST/pt-table-sync.html ###安装( 阅读全文
posted @ 2021-06-29 16:11
whiteY
阅读(1011)
评论(0)
推荐(0)
摘要:
###主从报错信息 Got fatal error 1236 from master when reading data from binary log: 'Client requested master to start replication from impossible position' 阅读全文
posted @ 2021-06-29 14:44
whiteY
阅读(2593)
评论(0)
推荐(0)

浙公网安备 33010602011771号