MySQL CLI 的 Pager

MySQL Performance Blog 這幾天介紹了 mysqlpager 功能,其中有幾個還蠻實用的:

  • pager 設定成 md5sum,比對兩次 Query 結果是不是相同。
  • 設定 pipe 到一串 shell tools (awk, sed) 來對結果作另一次的處理。

另外也可以:

  • 設定成 tee,寫到檔案裡面去。
  • 寫一個 script 來處理。

Leave a Reply

Your email address will not be published. Required fields are marked *