简体   繁体   English

mysql中的表用法

[英]Table usage in mysql

I've a database and log files. 我有一个数据库和日志文件。 I would like to know the least used/unused tables. 我想知道最少使用/未使用的表。 So, can anyone help me with ways to get details like table usage statistics? 因此,有人可以帮助我获取诸如表使用情况统计信息之类的详细信息吗?

Use percona toolkit for analyzing logs https://www.percona.com/doc/percona-toolkit/2.2/index.html 使用percona工具包分析日志https://www.percona.com/doc/percona-toolkit/2.2/index.html

for slow logs ./pt-query-digest /path/to/slow.log 对于慢日志./pt-query-digest /path/to/slow.log
or ./pt-table-usage /path/to/log ./pt-table-usage /path/to/log

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM