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

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 :: coalesce function in sql server 
Sql :: postgres stored procedure 
Sql :: delete insert record in sql server 
Sql :: stored procedure sql 
Sql :: pgadmin check database 
Sql :: Select All From A Table In A MySQL Database 
Sql :: sql table alias join 
Sql :: plpgsql coalesce equivalent for empty string 
Sql :: mysql date time string format for marshmellow field schema 
Sql :: download database devilbox 
Sql :: mysql select database 
Sql :: grant select mysql 
Sql :: sql store procedure 
Sql :: python sqlalchemy orm to select null values 
Sql :: reset counter postgres 
Sql :: oracle for loop on list 
Sql :: create table kusto 
Sql :: mysql dependency for spring boot 
Sql :: postgres meta command to show all rows in table 
Sql :: mysql uuid 
Sql :: linux upload database to mysql 
Sql :: add column first position mysql 
Sql :: difference between left outer join and left join in sql 
Sql :: sql min 
Sql :: sql date between one week 
Sql :: Ms Sql set us timezone 
Sql :: oracle sql count occurrences of value in column 
Sql :: to_sql pandas 
Sql :: stored function in sql 
Sql :: Join multiple table by MySQL 
ADD CONTENT
Topic
Content
Source link
Name
9+4 =