mysql utilities_MySQL_Utilities工具

需求

Python 2.6

MySQL Connector/Python 连接器

下载地址:

http://dev.mysql.com/downloads/utilities/

安装示例

# rpm -Uvh mysql-connector-python-2.1.6-1.el7.x86_64.rpm

# rpm -Uvh mysql-utilities-1.6.5-1.el7.noarch.rpm

查看安装后生成的文件

# rpm -ql mysql-utilities | grep "/usr/bin"

/usr/bin/mysqlauditadmin

/usr/bin/mysqlauditgrep

/usr/bin/mysqlbinlogmove

/usr/bin/mysqlbinlogpurge

/usr/bin/mysqlbinlogrotate

/usr/bin/mysqldbcompare

/usr/bin/mysqldbcopy

/usr/bin/mysqldbexport

/usr/bin/mysqldbimport

/usr/bin/mysqldiff

/usr/bin/mysqldiskusage

/usr/bin/mysqlfailover

/usr/bin/mysqlfrm

/usr/bin/mysqlgrants

/usr/bin/mysqlindexcheck

/usr/bin/mysqlmetagrep

/usr/bin/mysqlprocgrep

/usr/bin/mysqlreplicate

/usr/bin/mysqlrpladmin

/usr/bin/mysqlrplcheck

/usr/bin/mysqlrplms

/usr/bin/mysqlrplshow

/usr/bin/mysqlrplsync

/usr/bin/mysqlserverclone

/usr/bin/mysqlserverinfo

/usr/bin/mysqlslavetrx

/usr/bin/mysqluc

/usr/bin/mysqluserclone

获取帮助

通过mysqluc获取帮助

###可以通过调用mysqluc命令行工具来获取这些工具的帮助信息

### mysqluc提供一个自带的命令行提示符窗口,在这个窗口下也可以完成相应的命令操作

mysqluc> help

Command                 Description

----------------------  ---------------------------------------------------

help utilities          Display list of all utilities supported.

help           Display help for a specific utility.

show errors             Display errors captured during the execution of the utilities.

clear errors            clear captured errors.

show last error         Display the last error captured during the execution of the utilities

help | help commands    Show this list.

exit | quit             Exit the console.

set =  Store a variable for recall in commands.

show options            Display list of options specified by the user on  launch.

show variables          Display list of variables.

                 Press ENTER to execute command.

                Press ESCAPE to clear the command entry.

                  Press DOWN to retrieve the previous command.

                    Press UP to retrieve the next command in history.

                   Press TAB for type completion of utility, option, or variable names.

              Press TAB twice for list of matching type completion (context sensitive).

$ mysqlfrm --basedir=/usr/local/mysql /tmp/t_child.frm --port=3333

$ mysqlfrm --server=root:123456@127.0.0.1:3307 /tmp/t_child.frm  --port=2323

$ mysqlfrm --diagnostic /tmp/t_child.frm

--show-stats:打印frm文件信息

可打开debug模式,如,

$ mysqlfrm --server=root:123456@127.0.0.1:3307 /tmp/t_child.frm --port=2323 -vvv

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值