标签:增删改 from ble dos dos命令 dex oba ptime 函数
SHOW STATUS LIKE ‘uptime‘ 启动时间
SHOW STATUS LIKE ‘com_select‘ 总查询次数
SHOW STATUS LIKE ‘com_update‘ 总修改次数
SHOW GLOBAL STATUS LIKE ‘connections‘ 链接数 不加GLOBAL 为当前session
DOS命令 netstat -an 查询端口监听
netstat -anb 查看进程号
慢查询 默认10秒以上为慢查询
SHOW STATUS LIKE ‘slow_queries‘ 查看慢查询次数(包括增删改查,存储过程,函数)
SHOW VARIABLES LIKE ‘long_query_time‘ 慢查询的默认时间
SET long_query_time =1 设置慢查询的默认时间 单位S
查询索引
show index from 表
show keys from 表
标签:增删改 from ble dos dos命令 dex oba ptime 函数
原文地址:http://www.cnblogs.com/jentary/p/6035016.html