# The MySQL server[mysqld]port=3307socket=/var/lib/mysql/mysql-prod.sockdatadir=/mnt/ulprod-ld_mysql/databaseslog-bin=/mnt/ulprod-ld_mysql/logs/mysql-binpid-file=/mnt/ulprod-ld_mysql/mysql-prod.pidskip-lockingkey_buffer=64Mmax_allowed_packet=1Mtable_cache=512sort_buffer_size=2Mread_buffer_size=2Mread_rnd_buffer_size=8Mmyisam_sort_buffer_size=128Mthread_cache_size=8query_cache_size=128Mquery_cache_limit=2Mthread_concurrency=8skip-name-resolveinnodb_data_file_path=ibdata1:10M:autoextendinnodb_buffer_pool_size=2048Minnodb_additional_mem_pool_size=20Minnodb_data_home_dir=/mnt/ulprod-ld_mysql/innodb_log_group_home_dir=/mnt/ulprod-ld_mysql/innodb_file_per_tableinnodb_log_file_size=256Minnodb_log_buffer_size=8Minnodb_flush_log_at_trx_commit=1default-storage_engine=InnoDBthread_cache_size=16slow_query_log=1long_query_time=1skip-federatedserver-id=1#log-bin=mysql-bin#sync_binlog = 1[mysqldump]quickmax_allowed_packet=16M[mysql]no-auto-rehash[isamchk]key_buffer=256Msort_buffer_size=256Mread_buffer=2Mwrite_buffer=2M[myisamchk]key_buffer=256Msort_buffer_size=256Mread_buffer=2Mwrite_buffer=2M[mysqlhotcopy]interactive-timeout
# The MySQL server[mysqld]port=3306socket=/var/lib/mysql/mysql-dr.sockdatadir=/mnt/ulprod-pa_mysql/databaseslog-bin=/mnt/ulprod-pa_mysql/logs/mysql-binpid-file=/mnt/ulprod-pa_mysql/mysql-dr.pidskip-lockingkey_buffer=64Mmax_allowed_packet=1Mtable_cache=512sort_buffer_size=2Mread_buffer_size=2Mread_rnd_buffer_size=8Mmyisam_sort_buffer_size=128Mthread_cache_size=8query_cache_size=128Mquery_cache_limit=2Mthread_concurrency=8skip-name-resolveinnodb_data_file_path=ibdata1:10M:autoextendinnodb_buffer_pool_size=2048Minnodb_additional_mem_pool_size=20Minnodb_data_home_dir=/mnt/ulprod-pa_mysql/innodb_log_group_home_dir=/mnt/ulprod-pa_mysql/innodb_file_per_tableinnodb_log_file_size=256Minnodb_log_buffer_size=8Minnodb_flush_log_at_trx_commit=1default-storage_engine=InnoDBthread_cache_size=16slow_query_log=1long_query_time=1skip-federatedserver-id=1#log-bin=mysql-bin#sync_binlog = 1[mysqldump]quickmax_allowed_packet=16M[mysql]no-auto-rehash[isamchk]key_buffer=256Msort_buffer_size=256Mread_buffer=2Mwrite_buffer=2M[myisamchk]key_buffer=256Msort_buffer_size=256Mread_buffer=2Mwrite_buffer=2M[mysqlhotcopy]interactive-timeout
Then create the client configuration file to force the use of TCP protocol instead of local socket
<?xml version="1.0"?><!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1"><!-- Copyright 2005 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. MySQL.xml : MySQL manifest, Scott Fehrman, Systems Engineer updated: 2005-09-16--><service_bundletype='manifest'name='MySQL Prod'><servicename='application/database/mysql-prod'type='service'version='1'><single_instance/><dependencyname='filesystem'grouping='require_all'restart_on='none'type='service'><service_fmrivalue='svc:/system/filesystem/local'/></dependency><exec_methodtype='method'name='start'exec='/opt/mysql/mysql/share/mysql/mysql.server-prod start'timeout_seconds='120'/><exec_methodtype='method'name='stop'exec='/opt/mysql/mysql/share/mysql/mysql.server-prod stop'timeout_seconds='120'/><instancename='default'enabled='false'/><stabilityvalue='Unstable'/><template><common_name><loctextxml:lang='C'>MySQLProdRDBMS5.0.19</loctext></common_name><documentation><manpagetitle='mysql'section='1'manpath='/opt/mysql/mysql/man'/></documentation></template></service></service_bundle>
<?xml version="1.0"?><!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1"><!-- Copyright 2005 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. MySQL.xml : MySQL manifest, Scott Fehrman, Systems Engineer updated: 2005-09-16--><service_bundletype='manifest'name='MySQL DR'><servicename='application/database/mysql-dr'type='service'version='1'><single_instance/><dependencyname='filesystem'grouping='require_all'restart_on='none'type='service'><service_fmrivalue='svc:/system/filesystem/local'/></dependency><exec_methodtype='method'name='start'exec='/opt/mysql/mysql/share/mysql/mysql.server-dr start'timeout_seconds='120'/><exec_methodtype='method'name='stop'exec='/opt/mysql/mysql/share/mysql/mysql.server-dr stop'timeout_seconds='120'/><instancename='default'enabled='false'/><stabilityvalue='Unstable'/><template><common_name><loctextxml:lang='C'>MySQLDRRDBMS5.0.19</loctext></common_name><documentation><manpagetitle='mysql'section='1'manpath='/opt/mysql/mysql/man'/></documentation></template></service></service_bundle>