Search
 
SCRIPT & CODE EXAMPLE
 

SQL

get database size mysql

SELECT table_schema "DB Name",
        ROUND(SUM(data_length + index_length) / 1024 / 1024, 1) "DB Size in MB" 
FROM information_schema.tables 
GROUP BY table_schema; 
Comment

how to check database size mysql

// QUERY 

SELECT table_schema AS "Database Name",
  ROUND(SUM(data_length + index_length) / 1024 / 1024, 2)
  AS "Size in (MB)"
  FROM information_schema.TABLES
  GROUP BY table_schema;
Comment

mysql db size

SELECT table_schema "DB Name",
        ROUND(SUM(data_length + index_length) / 1024 / 1024, 1) "DB Size in MB" 
FROM information_schema.tables 
GROUP BY table_schema; 
Comment

mysql size of database

SELECT table_schema "Data Base Name", sum( data_length + index_length ) / (1024 * 1024) "Data Base Size in MB" FROM information_schema.TABLES GROUP BY table_schema ;
Comment

get size of mysql database

SELECT table_schema AS "Database", 
ROUND(SUM(data_length + index_length) / 1024 / 1024, 2) AS "Size (MB)" 
FROM information_schema.TABLES 
GROUP BY table_schema;
Comment

PREVIOUS NEXT
Code Example
Sql :: mysql previous year 
Sql :: mysql insert from local csv 
Sql :: mysql python 
Sql :: sql server: select column values as comma separated string 
Sql :: update all rows mysql 
Sql :: docker export psql sql 
Sql :: oracle exceeded simultaneous sessions_per_user limit 
Sql :: Incorrect format parameter 
Sql :: add foreign key constraint in postgresql 
Sql :: update with join sql server 
Sql :: id increment ms sql server 
Sql :: alter database name script 
Sql :: dynamic sql invalid table name 
Sql :: delete all content in table mysql 
Sql :: mysql docker compose 
Sql :: list all columns in a table sql 
Sql :: ubuntu reset mysql root password 
Sql :: sql not null 
Sql :: postgres set default value 
Sql :: update single sql column 
Sql :: Configure postgresql engine for your django application 
Sql :: how to update date value in sql 
Sql :: Write a query to create an empty table from an existing table? 
Sql :: postgres foreign key multiple columns 
Sql :: count columns psql(PostreSQL) 
Sql :: how to get the date diff on once field in sql server 
Sql :: creating a table in sql 
Sql :: sql manhattan distance 
Sql :: create table in sql 
Sql :: alter table id autoincrement 
ADD CONTENT
Topic
Content
Source link
Name
7+2 =