?
Solved

MySql DATABASE creation date

Posted on 2004-08-17
7
Medium Priority
?
2,040 Views
Last Modified: 2013-12-12
Is there any way to find out MySql DATABASE creation date?
0
Comment
Question by:KevinJavia
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
7 Comments
 
LVL 17

Accepted Solution

by:
davebytes earned 200 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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Part of the Global Positioning System A geocode (https://developers.google.com/maps/documentation/geocoding/) is the major subset of a GPS coordinate (http://en.wikipedia.org/wiki/Global_Positioning_System), the other parts being the altitude and t…
Originally, this post was published on Monitis Blog, you can check it here . In business circles, we sometimes hear that today is the “age of the customer.” And so it is. Thanks to the enormous advances over the past few years in consumer techno…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
Suggested Courses

777 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