1. Installing and Configuring HA for MySQL
A. Deployment Example: Installing MySQL in the Global Zone
B. Deployment Example: Installing MySQL in the Non-Global HA Container
C. Deployment Example: Installing MySQL in a Non-Global Zone
D. Deployment Example: Installing MySQL in a Scalable or Multiple-Master Configuration
Installing and Configuring MySQL on Local Storage in the Global Zone
Example: How to Prepare the Cluster for MySQL
Example: How to Configure MySQL in a Scalable Resource Group
Example: How to Configure MySQL in a Multiple--Master Resource Group
Example: How to Install and Bootstrap the MySQL Software on Local Storage
Example: How to Enable the MySQL Software to Run in the Cluster
phys-schost-1# cp /opt/SUNWscmys/util/mysql_config /local phys-schost-1# cp /opt/SUNWscmys/util/ha_mysql_config /local
The following listing shows the relevant file entries for a scalable service and the values to assign to each entry.
… MYSQL_BASE=/usr/local/mysql MYSQL_USER=root MYSQL_PASSWD=root MYSQL_HOST= phys-schost-1 FMUSER=fmuser FMPASS=fmuser MYSQL_SOCK=/tmp/phys-schost-1.sock MYSQL_NIC_HOSTNAME="phys-schost-1" MYSQL_DATADIR=/local/mysql-data NDB_CHECK=
Note - Make sure that the parameter MYSQL_HOST reflects the physical hostname on both nodes.
The following listing shows the relevant file entries and the values to assign to each entry.
Note - For a multiple-master resource leave the variables SCALABLE and LH empty.
… RS=RS-MYSQL RG=RG-MYSQL PORT=3306 LH=ha-host-1 SCALABLE=yes LB_POLICY= HAS_RS= … BASEDIR=/usr/local/mysql DATADIR=/local/mysql-data MYSQLUSER=mysql MYSQLHOST= FMUSER=fmuser FMPASS=fmuser LOGDIR=/local/mys-data/logs CHECK=YES NDB_CHECK=