use information_schema;
select concat(round(sum(data_length/1024/1024),2),’MB’) as data from tables where TABLE_SCHEMA=’数据库名’;
得到的结果是以字节为单位,除1024为K,除1048576为M。
netstat -na |grep mysql 看看有多少连接
netstat -na |grep mysql |wc -l 查看mysql进程有多少个。
use information_schema;
select concat(round(sum(data_length/1024/1024),2),’MB’) as data from tables where TABLE_SCHEMA=’数据库名’;
得到的结果是以字节为单位,除1024为K,除1048576为M。
netstat -na |grep mysql 看看有多少连接
netstat -na |grep mysql |wc -l 查看mysql进程有多少个。