Catalogue
Installing and Running mysqldiff on CentOS

Installing and Running mysqldiff on CentOS

🌐 日本語で読む

Switch to the root user

1
$ sudo su -

Install mysqldiff

1
2
3
# cd /usr/local/src
# wget http://search.cpan.org/CPAN/authors/id/A/AS/ASPIERS/MySQL-Diff-0.43.tar.gz
# tar zxvf MySQL-Diff-0.43.tar.gz

Set the lib path for mysqldiff

1
# vi MySQL-Diff-0.43/bin/mysqldiff
1
2
3
4
5
6
#!/usr/bin/perl -w

use lib '/usr/local/src/MySQL-Diff-0.43/lib'; ←add this line

=head1 NAME

Install Slurp

1
# yum -y install perl-File-Slurp

Symbolic link

1
# ln -s /usr/local/src/MySQL-Diff-0.43/bin/mysqldiff /usr/local/bin/mysqldiff

Verify mysqldiff execution

1
$ mysqldiff

Compare db1 and db2

1
$ mysqldiff db1 db2
Author

Kenzo Tanaka

Posted on

2015-06-16

Licensed under