information_schema.TABLES
表来获取,具体可以使用SQL语句 SELECT SUM(data_length + index_length) / 1024 / 1024 AS 'DBSizeInMB' FROM information_schema.TABLES WHERE table_schema = 'your_database_name';
。information_schema.TABLES
表来获取,具体可以使用SQL语句 SELECT SUM(data_length + index_length) / 1024 / 1024 AS 'DBSizeInMB' FROM information_schema.TABLES WHERE table_schema = 'your_database_name';
。Powered By Z-BlogPHP 1.7.3