# How to get DB Creation Date,User name and other stats in SS Cluster

**URL:** <https://www.singlestore.com/forum/t/how-to-get-db-creation-date-user-name-and-other-stats-in-ss-cluster/6515>\
**Category:** Uncategorized\
**Created:** [February 13, 2023, 6:10am UTC](https://www.singlestore.com/forum/t/how-to-get-db-creation-date-user-name-and-other-stats-in-ss-cluster/6515 "2023-02-13T06:10:13Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![divyank1](https://www.singlestore.com/forum/letter_avatar_proxy/v4/letter/d/9fc29f/32.png) [@divyank1](https://www.singlestore.com/forum/u/divyank1)\
**Post date:** [February 13, 2023, 6:10am UTC](https://www.singlestore.com/forum/t/how-to-get-db-creation-date-user-name-and-other-stats-in-ss-cluster/6515/1 "2023-02-13T06:10:14Z")

</div>

Hi,

I want to get Statistics of Database Creation date, Which user created the DB, Table creation date, Which commands run on particular DB?

Pls let me know how to get above details in SS Cluster by runnng commands in SS Studio GUI.

I have installed SS using Tarball on Linux with SS version: 8.0.9

---

<div class="post-metadata">

**Author:** ![hanson](https://www.singlestore.com/forum/user_avatar/www.singlestore.com/hanson/32/196_2.png) [@hanson](https://www.singlestore.com/forum/u/hanson)\
**Post date:** [February 21, 2023, 11:59pm UTC](https://www.singlestore.com/forum/t/how-to-get-db-creation-date-user-name-and-other-stats-in-ss-cluster/6515/2 "2023-02-21T23:59:07Z")

</div>

Try

```auto
use information_schema;
select * from distributed_databases;
select * from schemata;
select * from tables;

```

The user who created the table is available in the TABLES table.

---

<div class="post-metadata">

**Author:** ![cdquintas](https://www.singlestore.com/forum/user_avatar/www.singlestore.com/cdquintas/32/749_2.png) [@cdquintas](https://www.singlestore.com/forum/u/cdquintas)\
**Post date:** [February 22, 2024, 12:17pm UTC](https://www.singlestore.com/forum/t/how-to-get-db-creation-date-user-name-and-other-stats-in-ss-cluster/6515/3 "2024-02-22T12:17:49Z")

</div>

I think you should add the database creation date to DATABASE INFO in the singlestore studio

---

<div class="post-metadata">

**Author:** ![cdquintas](https://www.singlestore.com/forum/user_avatar/www.singlestore.com/cdquintas/32/749_2.png) [@cdquintas](https://www.singlestore.com/forum/u/cdquintas)\
**Post date:** [February 22, 2024, 12:20pm UTC](https://www.singlestore.com/forum/t/how-to-get-db-creation-date-user-name-and-other-stats-in-ss-cluster/6515/4 "2024-02-22T12:20:03Z")

</div>

How i get the create date of a Database?

---

<div class="post-metadata">

**Author:** ![hanson](https://www.singlestore.com/forum/user_avatar/www.singlestore.com/hanson/32/196_2.png) [@hanson](https://www.singlestore.com/forum/u/hanson)\
**Post date:** [February 26, 2024, 6:10pm UTC](https://www.singlestore.com/forum/t/how-to-get-db-creation-date-user-name-and-other-stats-in-ss-cluster/6515/5 "2024-02-26T18:10:56Z")

</div>

We don’t have that information available directly in information\_schema. You can approximate it in some cases based on this:

One of the system views in SingleStore that contains metadata is `MV_COLUMNAR_SEGMENT_INDEX` which includes a `CREATION_TIME` column, but this pertains to columnstore segments and not to the database as a whole.

---

<div class="post-metadata">

**Author:** ![contact.eric.technog](https://www.singlestore.com/forum/letter_avatar_proxy/v4/letter/c/ecb155/32.png) [@contact.eric.technog](https://www.singlestore.com/forum/u/contact.eric.technog)\
**Post date:** [March 4, 2024, 7:46am UTC](https://www.singlestore.com/forum/t/how-to-get-db-creation-date-user-name-and-other-stats-in-ss-cluster/6515/6 "2024-03-04T07:46:25Z")

</div>

In SingleStore (formerly known as MemSQL), you can gather information about database creation date, table creation date, and user actions using various SQL queries and system views. Here’s how you can obtain this information:

1. **Database Creation Date** :  
You can find the creation date of a database by querying the `information_schema.DATABASES` system view. Here’s the SQL query:

2. **User who created the Database** :  
SingleStore does not directly track the user who created a database. However, if you maintain an audit trail or logging system, you may be able to retrieve this information from your logs.

3. **Table Creation Date** :  
Table creation date information can be obtained from the `information_schema.TABLES` system view. Here’s the SQL query:

4. **Commands run on a particular Database** :  
SingleStore does not store a history of executed commands by default. However, you can set up auditing or logging mechanisms to track commands executed against the database. Additionally, if you’re using the SingleStore Studio GUI, you can view the history of executed queries within the Studio interface.

Please note that while SingleStore provides system views to gather information about database objects, user actions, and more, it may not cover every specific requirement you have. You may need to supplement this information with external logging or auditing mechanisms depending on your use case and requirements.
