Oliver Spryn
Oliver Spryn

Reputation: 17358

MySQL Get Time of Old Record Insert?

I have a table in my database which contains all of the users for my application. Unfortunately, when I launched my application, I didn't think to include a column which tracked the time at which a particular user signed up, and now I wish I had (bad idea, yes indeed).

Is there, by any shred of luck, a way that MySQL tracks when a particular record is inserted (such as in record metadata???), and would allow me to grab it and insert in into a new dedicated column for this purpose?

I am running on a shared cPanel host, so I doubt I have access to the MySQL logs.

Thank you for your time.

Upvotes: 6

Views: 3883

Answers (1)

Michael
Michael

Reputation: 10474

Only if you have binary logging enabled will you be able to trace exact times for the transaction.

http://dev.mysql.com/doc/refman/5.5/en/binary-log.html

Its not just for replication, but also a form of transactional recording in case of emergency.

Upvotes: 1

Related Questions