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 in mysql 
Sql :: mysql check if string contains comma separated 
Sql :: jooq convert using gbk 
Sql :: get month of date sql 
Sql :: import local sql into remote mysql 
Sql :: STOP message of how many rows affected sql 
Sql :: add many column to sap iq table 
Sql :: oracle current date 
Sql :: monthname sql 
Sql :: pl sql dynamic sql drop doesnt work 
Sql :: mysql change root password ubuntu 
Sql :: bigquery get current date 
Sql :: set password mysql 
Sql :: oracle nls session 
Sql :: convert int to varchar sql 
Sql :: check mysql version phpmyadmin 
Sql :: mysql server is not starting xampp 
Sql :: prosys sql log 
Sql :: sql left join exists 
Sql :: t-sql select min from two values 
Sql :: add days in oracle sql 
Sql :: oracle list service names 
Sql :: t SQl Checking Your Username 
Sql :: sqlite check if row exists 
Sql :: oracle substring 
Sql :: copy sql table to new table 
Sql :: how to check schema privileges in oracle 
Sql :: wsl install mysql 
Sql :: how to change column type psql 
Sql :: safe mysql 
ADD CONTENT
Topic
Content
Source link
Name
9+5 =