如何查詢mysql資料庫中哪些表的資料量最大

來源:互聯網
上載者:User

標籤:mysql 資料量最大

1.mysql的information_schema下有儲存資料庫基本資料的資料字典表,可以通過查詢tables表來獲得所需要的表相關資訊。 mysql> show databases;

650) this.width=650;" src="http://s3.51cto.com/wyfs02/M00/87/D2/wKiom1fiNPnzxLkrAAAeFr9AE7s847.png-wh_500x0-wm_3-wmp_4-s_568716826.png" title="QQ20160921151845.png" alt="wKiom1fiNPnzxLkrAAAeFr9AE7s847.png-wh_50" />

2. use  information_schema;

650) this.width=650;" src="http://s2.51cto.com/wyfs02/M01/87/D2/wKiom1fiNUfDTC7cAAAOErCoWpQ067.png-wh_500x0-wm_3-wmp_4-s_977562445.png" title="QQ20160921152006.png" alt="wKiom1fiNUfDTC7cAAAOErCoWpQ067.png-wh_50" />

3. show tables;

650) this.width=650;" src="http://s4.51cto.com/wyfs02/M00/87/CE/wKioL1fiNW_ROVVcAAAkg2MMGy0913.png-wh_500x0-wm_3-wmp_4-s_3139218807.png" title="QQ20160921152055.png" alt="wKioL1fiNW_ROVVcAAAkg2MMGy0913.png-wh_50" />

4. desc tables;

650) this.width=650;" src="http://s2.51cto.com/wyfs02/M02/87/D2/wKiom1fiNZ7hjrbxAAAqmSqILJg015.png-wh_500x0-wm_3-wmp_4-s_1781070491.png" title="QQ20160921152141.png" alt="wKiom1fiNZ7hjrbxAAAqmSqILJg015.png-wh_50" />

5 select table_name,table_rows from  tables order by table_rows desc limi 10;



如何查詢mysql資料庫中哪些表的資料量最大

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.