Create MySQL database with character set and collate:
CREATE DATABASE mydb
DEFAULT CHARACTER SET utf8
DEFAULT COLLATE utf8_general_ci;
Show Database sizes:
SELECT table_schema AS "Database",
Round(Sum(data_length + index_length) / 1024 / 1024 / 1024, 1) AS "Size in GB"
FROM information_schema.tables
GROUP BY table_schema
Show Table sizes:
SELECT
TABLE_SCHEMA AS `Database`,
TABLE_NAME AS `Table`,
ROUND((DATA_LENGTH + INDEX_LENGTH) / 1024 / 1024) AS `Size (MB)`
FROM
information_schema.TABLES
ORDER BY
(DATA_LENGTH + INDEX_LENGTH)
DESC;