123456789
SELECT table_schema AS '数据库', SUM(table_rows) AS '记录数', SUM(TRUNCATE(data_length / 1024 / 1024, 2)) AS '数据容量(MB)', SUM(TRUNCATE(index_length / 1024 / 1024, 2)) AS '索引容量(MB)'FROM information_schema.tablesGROUP BY table_schemaORDER BY SUM(data_length) DESC , SUM(index_length) DESC;
SELECT table_schema AS '数据库', table_name AS '表名', table_rows AS '记录数', TRUNCATE(data_length / 1024 / 1024, 2) AS '数据容量(MB)', TRUNCATE(index_length / 1024 / 1024, 2) AS '索引容量(MB)'FROM information_schema.tablesORDER BY data_length DESC , index_length DESC;
SELECT table_schema AS '数据库', SUM(table_rows) AS '记录数', SUM(TRUNCATE(data_length / 1024 / 1024, 2)) AS '数据容量(MB)', SUM(TRUNCATE(index_length / 1024 / 1024, 2)) AS '索引容量(MB)'FROM information_schema.tablesWHERE table_schema = 'mysql';
1234567891011
SELECT table_schema AS '数据库', table_name AS '表名', table_rows AS '记录数', TRUNCATE(data_length / 1024 / 1024, 2) AS '数据容量(MB)', TRUNCATE(index_length / 1024 / 1024, 2) AS '索引容量(MB)'FROM information_schema.tablesWHERE table_schema = 'mysql'ORDER BY data_length DESC , index_length DESC;
Hangzhou, China
文章
159
分类
83
标签
94
DB / mysql
分布式缓存 / Redis
性能分析 / OOM
python / mysql
python / Redis
Update your browser to view this website correctly. Update my browser now
×