Solved

MySql DATABASE creation date

Posted on 2004-08-17
7
1,240 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Introduction Many web sites contain image galleries; a common design for these galleries includes a page with a collection of thumbnail images.  You can click on each of the thumbnail images to see the larger version of the image.  This is easily i…
Consider the following scenario: You are working on a website and make something great - something that lets the server work with information submitted by your users. This could be anything, from a simple guestbook to a e-Money solution. But what…
The viewer will learn how to count occurrences of each item in an array.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

772 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

15 Experts available now in Live!

Get 1:1 Help Now