加入收藏 | 设为首页 | 会员中心 | 我要投稿 上海站长网 (https://www.021zz.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 站长学院 > MySql教程 > 正文

Mysql中maatkit的安装和介绍

发布时间:2022-01-16 11:27:24 所属栏目:MySql教程 来源:互联网
导读:本篇内容介绍了Mysql中maatkit的安装和简介的有关知识,在实际案例的操作过程中,不少人都会遇到这样的困境,接下来就让小编带领大家学习一下如何处理这些情况吧!希望大家仔细阅读,能够学有所成! maatkit 是baron.schwartz 为主导,开源的Mysql工具,提供
      本篇内容介绍了“Mysql中maatkit的安装和简介”的有关知识,在实际案例的操作过程中,不少人都会遇到这样的困境,接下来就让小编带领大家学习一下如何处理这些情况吧!希望大家仔细阅读,能够学有所成!
 
     maatkit 是baron.schwartz 为主导,开源的Mysql工具,提供了很多Mysql官方目前并没有实现的功能.大大方便和加强了Mysql的监控和管理.下面简单介绍下安装和使用.
  
安装很简单,比如我下载的maatkit-2725.zip ,释放后整个文件夹传到服务器上,对于软件环境要求,一般就是DBD::mysql和DBI,当然少不了perl.安装只要几个命令:
 
# cd maatkit-2725/
 
# perl Makefile.PL
 
# make
 
# make install
 
就可以使用了,下面是一些有用的功能
 
1、mk-table-checksum 检查主从表是否一致及有效的工具
 
2、mk-table-sync 使表一致的工具,不必重载从表而能够保证一致
 
3、mk-visual-explain exlpain解释工具
 
4、mk-heartbeat 主从同步的监视工具,能够给出从落后于主多少
 
5、mk-parallel-dump 多线程的mysqldump工具
 
6、mk-parallel-restore 多线程的表修复工具
 
7、mk-query-profiler 查询检测分析工具
 
8、mk-deadlock-logger 死锁的记录工具
 
9、mk-duplicate-key-checker key侦测工具
 
10、mk-show-grants 权限管理显示工具
11、mk-slave-restart slave的检测和重启工具
 
12、mk-slave-delay slave delay replication 的工具
 
mk-archiver Archive rows from a MySQL table into another table or a file.
mk-audit Analyze, summarize and report on MySQL config, schema and operation
mk-checksum-filter Filter checksums from mk-table-checksum.
mk-deadlock-logger Extract and log MySQL deadlock information.
mk-duplicate-key-checker Find possible duplicate indexes and foreign keys on MySQL tables.
mk-fifo-split Split files and pipe lines to a fifo without really splitting.
mk-find Find MySQL tables and execute actions, like GNU find.
mk-heartbeat Monitor MySQL replication delay.
mk-log-parser Analyze and review MySQL logs.
mk-log-player Split and play MySQL slow logs.
mk-log-server Serve MySQL binary logs.
mk-parallel-dump Dump sets of MySQL tables in parallel.
mk-parallel-restore Load files into MySQL in parallel.
mk-profile-compact Compact the output from mk-query-profiler.
mk-query-profiler Execute SQL statements and print statistics, or measure activity caused by other processes.
mk-show-grants Canonicalize and print MySQL grants so you can effectively replicate, compare and version-control them.
mk-slave-delay Make a MySQL slave server lag behind its master.
mk-slave-find Find MySQL replication slaves and execute commands on them.
mk-slave-move Move a MySQL slave around in the replication hierarchy.
mk-slave-prefetch Pipeline relay logs on a MySQL slave to pre-warm caches.
mk-slave-restart Watch and restart MySQL replication after errors.
mk-table-checksum Perform an online replication consistency check, or checksum MySQL tables efficiently on one or many servers.
mk-table-sync Synchronize MySQL tables efficiently.
mk-visual-explain Format EXPLAIN output as a tree.
 
“Mysql中maatkit的安装和简介”的内容就介绍到这里了,感谢大家的阅读。

(编辑:上海站长网)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!