Link to home
Start Free TrialLog in
Avatar of GK GK
GK GK

asked on

Query for last database updated date in MySQL

Hi All,

Could some body provide me query to find last updated of the database in mYSQL.

Regards,
Sreeni
Avatar of Jayaraja Jayaraman
Jayaraja Jayaraman
Flag of United States of America image

SELECT max(last_user_update) last_user_update
FROM sys.dm_db_index_usage_stats
WHERE database_id = DB_ID( 'YOUR_DBNAME_HERE')

or

This Blog entry contains information on how to do it on SQL Server 2008 and 2005.
http://sqlblog.com/blogs/aaron_bertrand/archive/2008/05/06/when-was-my-database-table-last-accessed.aspx
Avatar of GK GK
GK GK

ASKER

Thanks Jayaraj,

Will it work for MySQL ?


Regards.
Sreeni
ASKER CERTIFIED SOLUTION
Avatar of GK GK
GK GK

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial