如何获得MySQL数据库的最后访问(和/或写入)时间? [英] How do you get the last access (and/or write) time of a MySQL database?
本文介绍了如何获得MySQL数据库的最后访问(和/或写入)时间?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
您最近一次读取或写入MySQL数据库的方式如何?
How do you find out the last time a MySQL database was read or written to?
您甚至可以对每张表进行检查吗?
Can you even do that check per table?
推荐答案
SELECT UPDATE_TIME
FROM INFORMATION_SCHEMA.TABLES
WHERE TABLE_SCHEMA = 'dbname'
AND TABLE_NAME = 'tabname'
Source: How can I tell when a MySQL table was last updated?
这篇关于如何获得MySQL数据库的最后访问(和/或写入)时间?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文