摘要:
// 实例1 /** * @start time */ function proStartTime() { global $startTime; $mtime1 = explode(" ", microtime()); $startTime = $mtime1[1] + $mtime1[0]; } /** * @End time */ function pro... 阅读全文
posted @ 2017-11-16 14:01
花儿为何那样红
阅读(1556)
评论(0)
推荐(0)
摘要:
1.进入mysql/bin目录下输入mysqladmin processlist; 2.启动mysql,输入show processlist; 如果有 SUPER 权限,则可以看到全部的线程,否则,只能看到自己发起的线程(这是指,当前对应的MySQL帐户运行的线程)。 得到数据形式如下(只截取了三条 阅读全文
posted @ 2017-11-16 12:24
花儿为何那样红
阅读(10686)
评论(0)
推荐(0)
摘要:
查看执行时间 1 show profiles; 2 show variables;查看profiling 是否是on状态; 3 如果是off,则 set profiling = 1; 4 执行自己的sql语句; 5 show profiles;就可以查到sql语句的执行时间; 查看操作了多少行 在s 阅读全文
posted @ 2017-11-16 12:23
花儿为何那样红
阅读(40729)
评论(0)
推荐(3)

浙公网安备 33010602011771号