Rad*_*ads 2 mysql database memory
databases我的mysql服务器中有两个或更多.memory数据库使用的总数是14GB.我想知道,每个数据库及其表使用的内存.
这应该工作
SELECT table_schema "table name", sum( data_length + index_length ) / 1024 / 1024 "Data Base Size in MB"
FROM information_schema.TABLES GROUP BY table_schema ;
Run Code Online (Sandbox Code Playgroud)
它将以两列格式显示数据库大小=> | 数据库名称| 数据库大小|