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

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 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 :: how to check database size mysql 
Sql :: SQL select past number of days 
Sql :: check mysql timezone 
Sql :: postgres remove foreign key constraint 
Sql :: mysql date - 1 day 
Sql :: sql headers delphi 
Sql :: dao function to check if database contains value 
Sql :: mysql where in array 
Sql :: convert float to int sql 
Sql :: error code 1292 mysql workbench 
Sql :: mac os zsh: command not found: mysql 
Sql :: oracle source query 
Sql :: operator does not exist: integer = text 
Sql :: oracle nls instance 
Sql :: sql for date greater than 
Sql :: moodle query first user access 
Sql :: ddl view 
Sql :: select insert new table sql server 
Sql :: importance of comment in mysql 
Sql :: default password of mysql 
Sql :: start mysql server using docker 
Sql :: postgresql CREATE EXTENSION pgcrypto 
Sql :: psql import backup file for windows 
Sql :: get first 3 letters name in sql 
Sql :: sql alter table statement 
Sql :: postgresql fill fake data 
Sql :: Uncaught Error: Cannot use object of type mysqli_result as array 
Sql :: mysql safe mode 
Sql :: oracle current date minus 1 day 
Sql :: insert if not exists postgresql 
ADD CONTENT
Topic
Content
Source link
Name
3+9 =