`
mizhihua
  • 浏览: 52090 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

查询数据库大小

 
阅读更多
SELECT 
table_schema AS 'Db Name', 
Round( Sum( data_length + index_length ) / 1024 / 1024, 3 ) AS 'Db Size (MB)', 
Round( Sum( data_free ) / 1024 / 1024, 3 ) AS 'Free Space (MB)' 
FROM information_schema.tables GROUP BY table_schema ; 
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics