This commit is contained in:
Fortern committed 2025-11-04 21:35:51 +08:00
1 parent 791fc19fc7
commit 484bd7eb02
1 file changed
+9 -2
+9 -2
View File
@@ -2,7 +2,14 @@
show global status like 'Innodb_page_size'; show global status like 'Innodb_page_size';
# 查询用户 # 查询用户
select * from mysql.user; select *
from mysql.user;
# 查询表的创建语句 # 查询表的创建语句
SHOW CREATE TABLE sku.person; 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';