Run this query and you’ll probably get what you’re looking for:
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;
This query comes from the mysql forums, where there are more comprehensive instructions available.
Related Posts:
- MySQL Error: : ‘Access denied for user ‘root’@’localhost’
- MySQL Error: : ‘Access denied for user ‘root’@’localhost’
- How do I restore a dump file from mysqldump?
- How do I quickly rename a MySQL database (change schema name)?
- Authentication plugin ‘caching_sha2_password’ cannot be loaded
- Create a new database with MySQL Workbench
- 1052: Column ‘id’ in field list is ambiguous
- 1052: Column ‘id’ in field list is ambiguous
- difference between primary key and unique key
- How to create a foreign key in phpmyadmin
- importing a CSV into phpmyadmin
- How to check if mysql database exists
- Is there a Profiler equivalent for MySql?
- How to do a batch insert in MySQL
- MySQL: Cloning a MySQL database on the same MySql instance
- Error: Duplicate entry ‘0’ for key ‘PRIMARY’
- Data is not constantly loading from custom wordpress table
- What’s a good strategy for planning WordPress DB growth?
- How do I load a sql.gz file to my database? (importing)
- Access Denied for User ‘root’@’localhost’ (using password: YES) – No Privileges?
- MySQL Error “Operand should contain 1 column”
- How to use MySQL DECIMAL?
- MySQL ERROR 1290 (HY000) –secure-file-priv option
- MySQL server startup error ‘The server quit without updating PID file’
- Duplicating a MySQL table, indices, and data
- Access Denied for User ‘root’@’localhost’ (using password: YES) – No Privileges?
- MySQL error code: 1175 during UPDATE in MySQL Workbench
- java.sql.SQLException: Access denied for user ‘root’@’localhost’ (using password: YES)
- Access denied; you need (at least one of) the SUPER privilege(s) for this operation
- How to find MySQL process list and to kill those processes?
- MySQL Server on MAMP-Windows Will Not Start
- SQL statement not working – “Operand type clash: date is incompatible with int’
- How can I output MySQL query results in CSV format?
- How can I rebuild indexes and update stats in MySQL innoDB?
- MySQL Error 1215: Cannot add foreign key constraint
- select * from table where column = something or, when unavailable, column = something else
- Differences between utf8 and latin1
- There can be only one auto column
- WordPress will not operate correctly
- importing data from non-wordpress mysql db
- Error: MySQL shutdown unexpectedly. XAMPP local conf running WordPress
- How can I SQL update a meta_value to remove the dollar signs that were entered with the value? (so just the value remains)
- Error establishing a database connection – with Debug Data
- if statement on database query
- How to execute mulitple statement SQL queries using $wpdb->query?
- Database with mixed collation (utf8mb4 & utf8_general_ci)
- How can I make wordpress suppress mysql errors?
- Is it good practice to use wpdb->query() function?
- Migrating database / content of non-CMS site to WordPress
- Delete all post meta except featured image Using SQL
- Error while importing database
- Adding new row to wp_post table
- How do I find which articles are missing a featured image in The WordPress database?
- How to determine what is generating large amount of database queries?
- Set meta_key and meta_value for all registered user in wordpress using sql query [closed]
- How do I get the posts within a certain year/date(with sql query)?
- Connect another DB and fetch records from some tables
- How to select from two different tables to display orders list with custom column from other table
- Error: MySQL shutdown unexpectedly [closed]
- Not connecting to database in file with multiple MySQL connections
- Defining the same price to all WooCommerce Products
- creating new field on mysql
- Database Structure on Different Servers
- How to set MYSQLI_OPT_INT_AND_FLOAT_NATIVE option
- SQL query to set posts in bulk based on the post content
- How can I detect right db type?
- How to insert dash (-) into database using wpdb and new_to_publish hook?
- MySQL: How to change url in posts from xxx.com to yyy.org?
- How to fetch all meta_key and meta_value using post_id wihout duplication of post meta using sql query
- Second ezSQL initialization for MSSQL
- Fetch a single row from a custom table for to a given ID
- Database create or redirect
- Upgrade DB Loop – WordPress DB Version Conflict
- WordPress & MySQL , problem with use many array in meta_query
- Button writing to MYSQL database
- How to escape percentage sign(%) in sql query with $wpdb->prepare?
- MySQL ‘duplicate entry’ error
- Recovery – Restore Database after moving folder location locally
- Performing CRUD operations on front end in wordpress
- What is my error trying to create a new table in the database?
- Deleted products from woocommerce are still in the database
- WordPress Dutch characters encoding problem
- How to show result of sql query in a page?
- Insert data from form to database
- How can I get $wpdb to show MySQL warnings?
- Populate custom post type/custom fields from an external database
- HyperDB failover Delay
- Select latest 2 articles, but only from given category
- CONCAT_WS in custom sql query
- How to extract some part of WordPress full source code
- Ordering topics by most replies in X days using MYSQL statement
- MySQL Select within WP Page template
- two wordpress sites, two themes, one database, same content
- MySQL database migration to WordPress
- Running WordPress from MySQL Cluster with HAPRoxy
- Custom query_posts() parameter
- Delete posts with word count less than x number of words
- SQL command to export post_content from wp_posts using phpMyAdmin
- Display total count of products in orders of a specific order status
- remove wordpress post links