随笔分类 -  MySQL Tools

摘要:系统版本: CentOS Linux release 7.6.1810 (Core) 编译安装Python3.8.4 [root@hankyoon ~]# tar -xvf Python-3.8.4.tgz [root@hankyoon ~]# cd Python-3.8.4/ [root@hank 阅读全文
posted @ 2024-04-25 15:10 __Yoon 阅读(417) 评论(0) 推荐(0) 编辑
摘要:项目地址: https://github.com/slowtech/slow-log-summary # wget https://github.com/slowtech/slow-log-summary/releases/download/v1.0.0/slow-log-summary-linux 阅读全文
posted @ 2023-11-22 14:31 __Yoon 阅读(238) 评论(0) 推荐(0) 编辑
摘要:一、通过sysbench创造测试数据 1、创造测试数据 [root@hankyoon db_tools]# sysbench --mysql-user=root --mysql-password='xxxxxx' --mysql-socket=/data/mysql/3307/mysql.sock 阅读全文
posted @ 2023-11-09 14:08 __Yoon 阅读(229) 评论(0) 推荐(0) 编辑
摘要:1、系统自带工具gzexe 加密方法: # gzexe test.sh 此时在目录下就会产生一个test.sh~文件,该文件是源文件,test.sh是加密后的文件 解密方法: # gzexe -d test.sh 在目录下就会产生一个test.sh~文件,该文件是源文件,test.sh是解密后的文件 阅读全文
posted @ 2023-10-25 16:03 __Yoon 阅读(981) 评论(0) 推荐(1) 编辑
摘要:工具下载: https://github.com/hcymysql/pt-slave-repair pt-slave-repair 工具简介: MySQL主从复制作为一种常见的数据同步方式,有时候会出现同步错误导致同步中断的情况。手动修复这些同步错误通常需要耗费不少时间和精力,并且对于不熟悉MySQ 阅读全文
posted @ 2023-08-30 10:54 __Yoon 阅读(253) 评论(0) 推荐(0) 编辑
摘要:reverse_sql 是一个用于解析和转换 MySQL 二进制日志(binlog)的工具。它可以将二进制日志文件中记录的数据库更改操作(如插入、更新、删除)转换为反向的 SQL 语句,以便进行数据恢复。其运行模式需二进制日志设置为 ROW 格式。 reverse_sql工具是一个用于数据库恢复的工 阅读全文
posted @ 2023-07-20 10:50 __Yoon 阅读(878) 评论(0) 推荐(0) 编辑
摘要:详解转载: https://www.xmmup.com/mysql-shellgongjujieshao.html 下载: wget https://dev.mysql.com/get/Downloads/MySQL-Shell/mysql-shell-8.0.29-linux-glibc2.12- 阅读全文
posted @ 2023-03-29 11:31 __Yoon 阅读(345) 评论(0) 推荐(0) 编辑
摘要:报错: FATAL: unable to connect to MySQL server on host '127.0.0.1', port 3377, aborting... FATAL: error 2059: Authentication plugin 'caching_sha2_passwo 阅读全文
posted @ 2023-02-13 11:32 __Yoon 阅读(549) 评论(0) 推荐(0) 编辑
摘要:MySQL Load Data 多种用法 1、--导出基础参数 (以为,逗号作为分隔符,以"双引号作为界定符) select * into outfile '/data/mysql/3306/tmp/employees.txt' character set utf8mb4 fields termin 阅读全文
posted @ 2022-12-07 15:56 __Yoon 阅读(402) 评论(0) 推荐(0) 编辑
摘要:https://github.com/beekeeper-studio/beekeeper-studio 阅读全文
posted @ 2022-07-26 11:00 __Yoon 阅读(112) 评论(0) 推荐(0) 编辑
摘要:Binlog中,除了具体的SQL,其实,还包含了很多有价值的信息,如, 事务的开始时间。 事务的结束时间。 事务的开始位置点。 事务的结束位置点。 操作的开始时间(一个事务通常会包含多个操作)。 表的操作信息,如哪些表执行了哪些操作。 拿到上面这些信息,我们可以做哪些事情呢? 基于事务的开始位置点和 阅读全文
posted @ 2022-07-13 14:09 __Yoon 阅读(382) 评论(0) 推荐(0) 编辑
摘要:某些时候需要判断binlog中是否有大事物的存在,比如在解决master-slave延迟高的情况下。 工具下载地址:http://pan.baidu.com/s/1jHIWUN0 表结构 < yoon]> show create table a\G ************************* 阅读全文
posted @ 2020-04-28 20:22 __Yoon 阅读(1286) 评论(0) 推荐(0) 编辑
摘要:pt-online-schema-change使用 工作原理:1、如果存在外键,根据alter-foreign-keys-method参数的值,检测外键相关的表,做相应设置的处理。没有使用 --alter-foreign-keys-method=rebuild_constraints 指定特定的值, 阅读全文
posted @ 2020-03-24 02:14 __Yoon 阅读(1147) 评论(0) 推荐(0) 编辑
摘要:pt-archiver 参数说明pt-archiver是Percona-Toolkit工具集中的一个组件,是一个主要用于对MySQL表数据进行归档和清除工具。它可以将数据归档到另一张表或者是一个文件中。pt-archiver在清除表数据的过程中并不会影响OLTP事务的查询性能。对于数据的归档,它可以 阅读全文
posted @ 2019-12-13 20:19 __Yoon 阅读(419) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示