Database using spatial query method

1. With regard to space usage mysql query:

  1.1 See all the disk space occupied by database size:

    select concat(round(sum(DATA_LENGTH/1024/1024),2),'MB') as data from information_schema.TABLES

  1.2 View size specified in the database library (udb) of:

  select concat(round(sum(DATA_LENGTH/1024/1024),2),'MB') as data from information_schema.TABLES where table_schema='udb'

 

Guess you like

Origin www.cnblogs.com/Jack-Kong/p/11041415.html