centos内yum包内的mysql-utilities不是最新版的。所以通过编译的方式进行安装。mysql-utilities-1.6.5是基于python2实现的,所以python不需要升级到3.
cd /download
wget https://cdn.mysql.com/archives/mysql-utilities/mysql-utilities-1.6.5.tar.gz
tar xvf mysql-utilities-1.6.5.tar.gz
cd mysql-utilities-1.6.5
python setup.py build
python setup.py install
mysqldiff --version
原文:https://www.cnblogs.com/gelu/p/9510871.html