Skip Navigation Links | |
Exit Print View | |
Oracle Solaris Cluster Data Service for MySQL Guide Oracle Solaris Cluster 4.1 |
1. Installing and Configuring HA for MySQL
A. Deployment Example: Installing MySQL in the Global Zone
Installing and Configuring MySQL on Local Storage in the Global Zone
Example: Preparing the Cluster for MySQL
Example: Configuring Cluster Resources for MySQL
Example: Installing and Bootstrapping the MySQL Software on Local Storage
Example: Enabling the MySQL Software to Run in the Cluster
B. Deployment Example: Installing MySQL in the Non-Global HA Zone
C. Deployment Example: Installing MySQL in a Scalable or Multiple-Master Configuration
phys-schost-1# cp /opt/SUNWscmys/util/mysql_config /global/mnt3 phys-schost-1# cp /opt/SUNWscmys/util/ha_mysql_config /global/mnt3
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= MYSQL_HOST=ha-host-1 FMUSER=fmuser FMPASS= MYSQL_SOCK=/tmp/ha-host-1.sock MYSQL_NIC_HOSTNAME="phys-schost-1 phys-schost-2" MYSQL_DATADIR=/global/mnt3/mysql-data NDB_CHECK=
The following listing shows the relevant file entries and the values to assign to each entry.
. . . RS=RS-PGS RG=RG-MYS PORT=5432 LH=hahostix1 HAS_RS=RS-MYS-HAS . . . BASEDIR=/usr/local/mysql DATADIR=/global/mnt3/mysql-data MYSQLUSER=mysql MYSQLHOST=ha-host-1 FMUSER=fmuser FMPASS= LOGDIR=/global/mnt3/mys-data/logs CHECK=YES LB_POLICY= SCALABLE=