使用MySQL管理和查询_MySQL管理工具MySQL Utilities — 查询MySQL使用的空间大小(32)

shell> sudo env PYTHONPATH=$PYTHONPATH mysqldiskusage \

--server=root:root@localhost --all

# Source on localhost: ... connected.

# Database totals:

+-----------------+--------------+

| db_name | total |

+-----------------+--------------+

| oltp2 | 829,669 |

| bvm | 15,129 |

| db1 | 9,895 |

| db2 | 11,035 |

| employees | 206,117,692 |

| griots | 14,415 |

| mysql | 995,722 |

| oltp1 | 177,393 |

| room_temp | 9,847 |

| sakila | 791,727 |

| test | 647,911 |

| test_arduino | 9,999 |

| welford_kindle | 72,032 |

| world | 472,785 |

| world_innodb | 829,669 |

+-----------------+--------------+

Total database disk usage = 210,175,251 bytes or 200.44 MB

# Log information.

+--------------------+--------------+

| log_name | size |

+--------------------+--------------+

| host123.log | 957,282,265 |

| host123-slow.log | 123,647 |

| host123.local.err | 321,772,803 |

+--------------------+--------------+

Total size of logs = 1,279,178,715 bytes or 1.19 GB

# Binary log information:

Current binary log file = my_log.000287

+----------------+---------+

| log_file | size |

+----------------+---------+

| my_log.000285 | 252208 |

| my_log.000286 | 256 |

| my_log.000287 | 3063 |

| my_log.index | 48 |

+----------------+---------+

Total size of binary logs = 255,575 bytes or 249.58 KB

# Server is not an active slave - no relay log information.

# InnoDB tablespace information:

+--------------+--------------+

| innodb_file | size |

+--------------+--------------+

| ib_logfile0 | 5,242,880 |

| ib_logfile1 | 5,242,880 |

| ibdata1 | 815,792,128 |

| ibdata2 | 52,428,800 |

+--------------+--------------+

Total size of InnoDB files = 889,192,448 bytes or 848.00 MB

InnoDB freespace = 635,437,056 bytes or 606.00 MB

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值