Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [root@chi-lynch-dev bin]# cat ../my.cnf master_start.sh
- [mysqld]
- port = 3307
- socket = /usr/local/mysql-master/mysql.sock
- #skip-networking // we have skip this in our case as we are doing both master and slave on same machine.
- # Replication Master Server (default)
- # binary logging is required for replication
- log-bin=mysql-master
- # required unique id between 1 and 2^32 - 1
- # defaults to 1 if master-host is not set
- # but will not function as a master if omitted
- server-id = 2
- ## FAIL-OVER settings
- ## The replication master for this slave - required
- master-host = localhost
- master-user = slavedb
- master-password = password
- master-port = 3308
- ./mysqld_safe --defaults-file=/usr/local/mysql-master/my.cnf --ledir=/usr/local/mysql-master/libexec --mysqld=mysqld --skip-kill-mysqld --log-error=/var/log/mysql-master --basedir=/usr/local/mysql-master/ --datadir=/usr/local/mysql-master/data --relay-log=chi-lynch-dev-relay-bin &
- [root@chi-lynch-dev bin]#
Add Comment
Please, Sign In to add comment