查看所有mysql数据库表和索引大小 mysql查看当前所有的数据库和索引大小 ,),' mb') as data_size, concat(,),'mb') as index_size from information_schema.tables group by table_schema order by data_length desc; mysql查看当前某个数据库和数据库下所有的表的大小 ,),' mb') as data_size, concat(,),' mb') as index
要想知道每个数据库的大小的话,步骤如下:1.进入information_schema 数据库(存放了其他的数据库的信息)use information_schema;2.查询所有数据的大小:select concat(round(sum(data_length/1024/1024),2),'MB') as data from tables;3.查看指定数据库的大小:比如查看数据库home的大小select concat(round(sum(data_length/1024/1024),2),'M
MySQL 如何查看及修改数据库引擎 1.查看mysql支持的引擎有哪些 show engines 结果,如图所示: 由上图可以看出,只有InnoDB是支持事务的 2.查看当前默认的引擎 show variables like 'default_storage_engine' 如图所示,我的默认是MyISAM 3.查看指定表当前的引擎,有2种方式 show table status where NAME ='xf_card' 或 show create table xf_card -- 在显示结