Mysql 内置数据库“information_schema”未记录用户创建数据库中表的上次更新时间

Mysql 内置数据库“information_schema”未记录用户创建数据库中表的上次更新时间,mysql,sql,logging,mariadb,information-schema,Mysql,Sql,Logging,Mariadb,Information Schema,内置数据库信息_架构的tables表不记录用户创建的数据库中表的活动,因为table_schema和table_name字段分别缺少用户创建的数据库和表名的值,因此不允许我运行SQL查询 SELECT update_time FROM information_schema.tables WHERE table_schema='my_db' and table_name='my_table'; -- For table named 'my_table' in database 'my_db'

内置数据库信息_架构的tables表不记录用户创建的数据库中表的活动,因为table_schema和table_name字段分别缺少用户创建的数据库和表名的值,因此不允许我运行SQL查询

SELECT update_time 
FROM information_schema.tables 
WHERE table_schema='my_db' and table_name='my_table';
-- For table named 'my_table' in database 'my_db'
用于检索数据库中表的上次更新时间或更改时间,即更新、删除或插入特定表中数据的最后时间,以确定是否需要备份

有谁能帮我解决这个在数据库中记录活动的问题,并向我解释背后的原因吗


提前感谢。

显然,您的表是InnoDB,您使用的是10.2以下的MariaDB版本

正如InnoDB团队所设想的那样,您遇到的是一个或更确切地说是缺少功能的问题。它已在最新稳定的InnoDB中修复,该版本包含在中

对于MyISAM表,它也应该适用于以前的版本