<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>lesamoureuses</author_name>
  <author_url>https://blog.hatena.ne.jp/lesamoureuses/</author_url>
  <blog_title>こんにちはこんにちはmonmonです！</blog_title>
  <blog_url>https://monmon.hateblo.jp/</blog_url>
  <categories>
    <anon>MySQL</anon>
    <anon>bash</anon>
  </categories>
  <description>crontabの整理したらあった。すっかり忘れていたけど前に自動化用shを作っていたようなのでメモメモ。 スレーブDBそれぞれのshow slave statusを確認 マスターログのどこまで見てるかを取得 そのうち一番古いバイナリログを求めてpurge master logを実行 みたいなことをやってるね #!/bin/sh # # slave h=(1 2) # mysql dir mysql_dir=/var/lib/mysql # それぞれのスレーブDBが見ているバイナリログを取得し配列にする mysql_bins=`for h in ${h[@]} do mysql -h slave…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmonmon.hateblo.jp%2Fentry%2F20100524%2F1274690916&quot; title=&quot;マスターDBのバイナリログ削除を自動化 - こんにちはこんにちはmonmonです！&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2010-05-24 17:48:36</published>
  <title>マスターDBのバイナリログ削除を自動化</title>
  <type>rich</type>
  <url>https://monmon.hateblo.jp/entry/20100524/1274690916</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
