19 lines
474 B
SQL
19 lines
474 B
SQL
# InnoDB引擎页大小,默认16k
|
||
show global status like 'Innodb_page_size';
|
||
|
||
# Buffer Pool 默认大小是 128M
|
||
show variables like '%innodb_buffer_pool%';
|
||
|
||
# 查询MySQL用户
|
||
select *
|
||
from mysql.user;
|
||
|
||
# 查询表的创建语句
|
||
show create table sku.person;
|
||
|
||
# 查询某个表占用的空间
|
||
select concat(round(sum(data_length / 1024 / 1024), 2), 'MB') as size
|
||
from information_schema.tables
|
||
where table_schema = 'fortern_qqnt'
|
||
and table_name = 'group_msg_table';
|