Guest User

Untitled

a guest
Mar 14th, 2018
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.96 KB | None | 0 0
  1. [root@chi-lynch-dev bin]# cat ../my.cnf master_start.sh
  2. [mysqld]
  3. port = 3307
  4. socket = /usr/local/mysql-master/mysql.sock
  5.  
  6. #skip-networking // we have skip this in our case as we are doing both master and slave on same machine.
  7.  
  8. # Replication Master Server (default)
  9. # binary logging is required for replication
  10. log-bin=mysql-master
  11.  
  12. # required unique id between 1 and 2^32 - 1
  13. # defaults to 1 if master-host is not set
  14. # but will not function as a master if omitted
  15. server-id = 2
  16.  
  17. ## FAIL-OVER settings
  18. ## The replication master for this slave - required
  19. master-host = localhost
  20. master-user = slavedb
  21. master-password = password
  22. master-port = 3308
  23.  
  24.  
  25. ./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 &
  26. [root@chi-lynch-dev bin]#
Add Comment
Please, Sign In to add comment