linux 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进程有多少个。

评论

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注