简体   繁体   English

从 mysql 数据库中获取转储文件的日期

[英]Get the date of a dump file from mysql database

I have created a MySQL database from a .sql dump file.我从 .sql 转储文件创建了一个 MySQL 数据库。 I have lost the dump file, but I want to know when that dump was taken.我丢失了转储文件,但我想知道该转储是何时进行的。 Is it possible to know when the dump was taken from the MySQL database?是否可以知道何时从 MySQL 数据库中获取转储? If possible, how to do it?如果可能,怎么做?

If you have the general log enabled at the time of the dump, then there will be a record.如果您在转储时启用了一般日志,那么就会有记录。 But otherwise, no, there isn't a record in the database.但否则,不,数据库中没有记录。

You could look at things like shell history, or ssh logins, but its unlikely to yield any specific results.您可以查看 shell 历史记录或 ssh 登录等内容,但不太可能产生任何特定结果。

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

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