In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-29 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/02 Report--
This article mainly explains "how to view mysql data size SQL", the article explains the content is simple and clear, easy to learn and understand, the following please follow the editor's ideas slowly in depth, together to study and learn "how to view mysql data size SQL" bar!
1. View the data volume and index size of each table in the database specified by mysql SQL:
Select TABLE_NAME, concat (truncate (data_length/1024/1024/1024,4), 'GB') as data_size, concat (truncate (index_length/1024/1024/1024,2),' GB') as index_size,table_rowsfrom information_schema.tables where TABLE_SCHEMA = 'dmall_batman'group by TABLE_NAMEorder by data_length desc
2. Check the data volume and index size of each database in mysql SQL:
Select TABLE_SCHEMA, concat (truncate (sum (data_length) / 1024 sum 1024), 'GB') as data_size, concat (truncate (sum (index_length) / 1024 pound 1024),' GB') as index_size from information_schema.tables group by TABLE_SCHEMA order by data_length desc
Thank you for your reading, the above is the content of "how to view mysql data size SQL". After the study of this article, I believe you have a deeper understanding of how to view mysql data size SQL, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.