需求
Python 2.6
MySQL Connector/Python 鏈接器
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 -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
# 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 <utility> 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 <variable>=<value> 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.
<ENTER> Press ENTER to execute command.
<ESCAPE> Press ESCAPE to clear the command entry.
<DOWN> Press DOWN to retrieve the previous command.
<UP> Press UP to retrieve the next command in history.
<TAB> Press TAB for type completion of utility, option, or variable names.
<TAB><TAB> Press TAB twice for list of matching type completion (context sensitive).
Command Description
---------------------- ---------------------------------------------------
help utilities Display list of all utilities supported.
help <utility> 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 <variable>=<value> 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.
<ENTER> Press ENTER to execute command.
<ESCAPE> Press ESCAPE to clear the command entry.
<DOWN> Press DOWN to retrieve the previous command.
<UP> Press UP to retrieve the next command in history.
<TAB> Press TAB for type completion of utility, option, or variable names.
<TAB><TAB> 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