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
Installing and Configuring MySQL on Local Storage in a Non-Global Zone
Example: Preparing the Cluster for MySQL
Example: Configuring Cluster Resources for MySQL
Example: Installing the MySQL Software on Local Storage
Example: Bootstrapping the MySQL Software on Local Storage
Example: Enabling the MySQL Software to Run in the Cluster
D. Deployment Example: Installing MySQL in a Scalable or Multiple-Master Configuration
In this task, you will create the configuration file to prepare the MySQL database. It is assumed that you are still logged in to this zone.
zone-1# cp /opt/SUNWscmys/util/mysql_config /config-files
The following listing shows the relevant file entries and the values to assign to each entry.
… MYSQL_BASE=/usr/local/mysql MYSQL_USER=root MYSQL_PASSWD=root MYSQL_HOST=ha-host-1 FMUSER=fmuser FMPASS=fmuser MYSQL_SOCK=/tmp/ha-host-1.sock MYSQL_NIC_HOSTNAME="zone-1 zone-2" MYSQL_DATADIR=/global/mnt3/mys-data