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 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 check 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 last year 
Sql :: mysql load data infile csv 
Sql :: where date major today mysql 
Sql :: sql random number between 1000 and 9999 
Sql :: get only first row mysql 
Sql :: How to Add a Default Value to a Column in MS SQL Server 
Sql :: ora-02391 
Sql :: SQL SERVER SELECT BETWEEN DATETIME 
Sql :: mysqli_connect using prepare statement 
Sql :: a network or instance-specific error sql server 
Sql :: sql create table primary key autoincrement 
Sql :: To change the database owner in SQL server 
Sql :: delete a record from a table sqlite3 
Sql :: clear a table in mysql 
Sql :: sql in sublime 
Sql :: vacuum table postgres 
Sql :: sql values not in another table 
Sql :: insert value in identity 
Sql :: postgresql change default value 
Sql :: check if record exists mysql 
Sql :: date diff sql 
Sql :: oracle difference between two dates in seconds 
Sql :: change default schema sql server 
Sql :: sql server select value large text 
Sql :: create user sql server 
Sql :: how to connect to xampp sql server on windows cmd 
Sql :: mariadb alter table add column if not exists example 
Sql :: postgresql export database 
Sql :: like in mysql 
Sql :: check if database exists sql 
ADD CONTENT
Topic
Content
Source link
Name
3+2 =