Advertisement
Guest User

Untitled

a guest
Feb 1st, 2017
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. perl -MMojo::Base=strict -MMojo::Util=spurt
  2. -MMojar::Mysql::Connector=cnf,/home/me/.mysql/super_production-02.cnf
  3. -E'my $d = Mojar::Mysql::Connector->new->connection;
  4. $d->do(q{FLUSH LOGS});
  5. my $unquiesce = $d->quiesce;
  6. spurt $$ => q{/tmp/quiesced};
  7. say q{Quiesced!};
  8. while (-f q{/tmp/quiesced} and $d->ping) {
  9. say join q{ | }, $d->selectrow_array(q{SHOW MASTER STATUS});
  10. sleep 30
  11. }
  12. $unquiesce->()'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement