Sha256: ece18168020cb687b6a934539951e7b6229b951c3740c14b3a36d66e0c48433b

Contents?: true

Size: 806 Bytes

Versions: 1

Compression:

Stored size: 806 Bytes

Contents

require_relative 'isolated_server'

# yeah, not technically isolated
master = IsolatedServer::Mysql.new(port: 3306)

slave = IsolatedServer::Mysql.new(data_path: "/Users/ben/.zendesk/var/mysql", allow_output: true, params: "--relay-log=footwa --skip-slave-start", port: 41756)
slave.boot! 
puts "mysql slave booted on port #{slave.port} -- access with mysql -uroot -h127.0.0.1 --port=#{slave.port} mysql"
slave.connection.query("set global server_id=123")
slave.make_slave_of(master) 
slave.set_rw(false)

uid_server = IsolatedServer::Mysql.new(data_path: "/Users/ben/.zendesk/var/mysql", allow_output: true, params: "--skip-slave-start", port: 41757)
uid_server.boot! 
puts "mysql uid server booted on port #{uid_server.port} -- access with mysql -uroot -h127.0.0.1 --port=#{uid_server.port} mysql"
sleep

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ar_mysql_flexmaster-1.0.3 test/boot_slave