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

check database size in 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

check all database size in gb mysql

# Check All Database Size in MB

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

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

check all database size in gb mysql

# Check Single Database Size in MB

SELECT table_name AS "Table",
ROUND(((data_length + index_length) / 1024 / 1024), 2) AS "Size (MB)"
FROM information_schema.TABLES
WHERE table_schema = "database_name"
ORDER BY (data_length + index_length) DESC;
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 :: uninstall mysql ubuntu 
Sql :: change nls_date_format 
Sql :: How to select rows with no matching entry in another table? 
Sql :: sql server 2016 reseed identity 
Sql :: postgresql update sequence next value 
Sql :: select all fields in soql 
Sql :: how to truncate table with foreign key constraint 
Sql :: show size of all tables postgres 
Sql :: mysql_secure_installation 
Sql :: query for all indexes in table postgres 
Sql :: view column data type sql 
Sql :: finding duplicate column values in table with sql 
Sql :: wilayah indonesia database 
Sql :: string to int mysql 
Sql :: sqlite alter table add column 
Sql :: oracle table size 
Sql :: postgresql change column type 
Sql :: mysql connectorj maven de 
Sql :: python sqlite3 create table if not exists 
Sql :: how remove column in mysql 
Sql :: mysql where one year ago 
Sql :: how to check last gather stats on table in oracle 
Sql :: mysql import gzip db 
Sql :: sqlite connection string 
Sql :: convert epoch to date in sql server 
Sql :: how to backup mysql database linux 
Sql :: pyodbc connect to sql server 
Sql :: oracle delete last row 
Sql :: Postgres upgrade to superuser 
Sql :: rails run native ssql query 
ADD CONTENT
Topic
Content
Source link
Name
7+4 =