flush 的常規用法:

來源:互聯網
上載者:User

標籤:master   tables   status   purge   二進位   

flush 的常規用法:


flush  logs : 重新整理二進位記錄檔


flush  PRIVILEGES:重新整理許可權,修改許可權或密碼後,需要使用到該命令


flush tables:關閉所有表,並清空緩衝中的類容 。


flush tables with read lock:關閉所有開啟的表,並且對所有DB中的表添加一個讀鎖,

直到顯示執行unlock tables 。該命令常用語備份資料。


flush master :刪除所有二進位日誌索引檔案中的二進位記錄檔,重設二進位記錄檔的索引檔案為空白,

建立一個新的二進位記錄檔,早起版本支援 ,現版本中使用reset master 替代。

和purge的基本一樣。

區別:purege 僅僅清空二進位記錄檔

reset master 清空二進位日誌並且重設二進位日誌索引檔案


flush  status :重設大多數狀態變數到0 


flush  Query Cache:重整查詢快取,消除其中的片段,***能,但並不影響查詢快取中的現有資料



參考連結:

http://www.360doc.com/content/13/0928/10/12904276_317597213.shtml

http://www.cnblogs.com/ggjucheng/archive/2012/11/07/2758021.html



本文出自 “SQLServer MySQL” 部落格,請務必保留此出處http://dwchaoyue.blog.51cto.com/2826417/1531663

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.