Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
executable file 11 lines (8 sloc) 205 Bytes
#!/usr/bin/env ruby
puts "change config to 127.0.0.1:4040"
Process.fork do
system "mysql-proxy --proxy-lua-script=mysqllog.lua"
end
logfile = "mysql.log"
`touch #{logfile}`
system "tail -f #{logfile}"