Solved

MySql DATABASE creation date

Posted on 2004-08-17
7
1,337 Views
Last Modified: 2013-12-12
Is there any way to find out MySql DATABASE creation date?
0
Comment
Question by:KevinJavia
  • 2
7 Comments
 
LVL 17

Accepted Solution

by:
davebytes earned 50 total points
ID: 11827849
if you grab something like MySQL-Front (or other MySQL admin tools should do similar), register a given database on a server, then select the server in the left pane, and the right pane shows the database with items, size, and creation date.

of course, this means there's likely also a command-line mysql command that can dump the information on a given database on a server for you, and the creation timestamp would be part of that...

But I use MySQL-Front for 99% of my DB admin.

MySQL Control Center will also show you the creation date of a registered db/server.

You can also likely get info on all the tables in a given database, which would include the creation timedate of the table, and the earliest timestamp is the effective creation date of the database (obv, if you wipe all tables and recreate, the effective creation date would jump forward).

-d
0
 

Author Comment

by:KevinJavia
ID: 11828117
Thanks for the reply davebytes.

I was wondering if this is possible using a query. Like if we want to show the status of the tables in a database, we can use 'SHOW TABLE STATUS' query.

Similarly is there a way to find out database information by query?
0
 
LVL 9

Expert Comment

by:gtkfreak
ID: 11833221
show table status returns the date of creation of the table. I do not think you can get the creation date of the database. MySQL does not store that.
0
 
LVL 17

Expert Comment

by:davebytes
ID: 11836005
As I mentioned, you can get the information on all the tables, which gives you the 'effective' date of the database.

Do a SHOW TABLE STATUS query, find the oldest Create_time column value, and that's a nice approximation -- assuming you haven't destroyed and recreated things (then again, if you've destroyed and recreated things, the date will be the date you did that!).

I haven't found a query access to database metadata -- might be it is being computed like the above, or that there are C/etc. APIs to access such data.

-d
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

These days socially coordinated efforts have turned into a critical requirement for enterprises.
Since pre-biblical times, humans have sought ways to keep secrets, and share the secrets selectively.  This article explores the ways PHP can be used to hide and encrypt information.
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

895 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now