Documentation Home
MySQL Utilities 1.5 Manual
Related Documentation Download this Manual
PDF (US Ltr) - 1.5Mb
PDF (A4) - 1.5Mb
HTML Download (TGZ) - 289.5Kb
HTML Download (Zip) - 301.7Kb


8.7.4.2 Install all packages

Install the necessary packages through the apt-get repositories:

[root@host1]# apt-get install drbd8-utils corosync pacemaker sysv-rc-conf libaio1
[root@host2]# apt-get install drbd8-utils corosync pacemaker sysv-rc-conf libaio1
    

Download and install the common, server, and client components on both hosts. Our example downloads and installs the bundled binaries from dev.mysql.com. Download the latest MySQL Server release bundle and install it on both machines using the following commands:

[root@host1]# dpkg -i mysql-common_*ubuntu14.04_amd64.deb
[root@host1]# dpkg -i mysql-community-server_*ubuntu14.04_amd64.deb
[root@host1]# dpkg -i mysql-community-client_*ubuntu14.04_amd64.deb

[root@host2]# dpkg -i mysql-common_*ubuntu14.04_amd64.deb
[root@host2]# dpkg -i mysql-community-server_*ubuntu14.04_amd64.deb
[root@host2]# dpkg -i mysql-community-client_*ubuntu14.04_amd64.deb
    

Next, install MySQL Fabric. Download MySQL Fabric by downloading the MySQL Utilities and install it using the following commands on each machine:

shell> unzip mysql-utilities-*.zip
shell> cd mysql-utilities-*
shell> python setup.py install
 

The script required to run MySQL Fabric with Pacemaker is not distributed with the packages and you need to manually download and install the script on each machine:

[root@host1]# cp mysql-fabric /usr/lib/ocf/resource.d/heartbeat/.
[root@host1]# chmod 755 /usr/lib/ocf/resource.d/heartbeat/mysql-fabric

[root@host2]# cp mysql-fabric /usr/lib/ocf/resource.d/heartbeat/.
[root@host2]# chmod 755 /usr/lib/ocf/resource.d/heartbeat/mysql-fabric
  

User Comments
Sign Up Login You must be logged in to post a comment.