mysql 5.7查看表分区信息

方法1:sql查询
select partition_name part,partition_expression expr,partition_description descr,table_rows
  from INFORMATION_SCHEMA.PARTITIONS where TABLE_SCHEMA=SCHEMA() AND TABLE_NAME= 'xxx';

 

方法2:查看数据存储位置,进入数据库存储位置查看

show variables like 'datadir';

猜你喜欢

转载自blog.csdn.net/zhaofuqiangmycomm/article/details/114942265