start new:
tmux
start new with session name:
tmux new -s myname
## mysql::master | |
ruby_block "store_mysql_master_status" do | |
block do | |
node.set[:mysql][:master] = true | |
m = Mysql.new("localhost", "root", node[:mysql][:server_root_password]) | |
m.query("show master status") do |row| | |
row.each_hash do |h| | |
node.set[:mysql][:master_file] = h['File'] | |
node.set[:mysql][:master_position] = h['Position'] | |
end |
Install Cygwin (http://www.cygwin.com/)
Download the RubyGems tarball from Ruby Forge (http://rubyforge.org/projects/rubygems/)
In a bash terminal, navigate to the unpacked directory and run: