当前位置: 首页 > news >正文

潍坊做网站的企业做搜狗pc网站优化点

潍坊做网站的企业,做搜狗pc网站优化点,如何申请免费的网站空间,怎么做打码网站1、profiles (1)详情 可以帮助清楚的展现,每一条SQL语句的执行耗时,以及时间都耗费到哪里去了 (2)基础语句 2、查看是否支持profiles mysql> select have_profiling; ------------------ | have_prof…

1、profiles

(1)详情

可以帮助清楚的展现,每一条SQL语句的执行耗时,以及时间都耗费到哪里去了

(2)基础语句

2、查看是否支持profiles

mysql> select @@have_profiling;
+------------------+
| @@have_profiling |
+------------------+
| YES              |
+------------------+
1 row in set, 1 warning (0.00 sec)

3、查询profiles是否打开

默认情况下,MySQL数据库的profiles是关闭的,我们需要手动将其打开

(1)查询是否打开

select @@profiling;
mysql> select @@profiling;
+-------------+
| @@profiling |
+-------------+
|           0 |
+-------------+
1 row in set, 1 warning (0.00 sec)

(2)打开profiles

通过set语句,将profiling参数设置为1,即开启

mysql> set profiling =1;
Query OK, 0 rows affected, 1 warning (0.01 sec)mysql> select @@profiling;
+-------------+
| @@profiling |
+-------------+
|           1 |
+-------------+
1 row in set, 1 warning (0.00 sec)

4、使用show profiles;语句

(1)查询语句的执行时间

show profiles;
mysql> show profiles;
+----------+------------+--------------------+
| Query_ID | Duration   | Query              |
+----------+------------+--------------------+
|        1 | 0.00041325 | select @@profiling |
|        2 | 0.00017100 | show tables        |
|        3 | 0.00032850 | SELECT DATABASE()  |
|        4 | 0.00130175 | show databases     |
|        5 | 0.00325000 | show tables        |
|        6 | 0.00115725 | show tables        |
|        7 | 0.00250400 | select * from stu  |
+----------+------------+--------------------+
7 rows in set, 1 warning (0.00 sec)

(2)查询某一条语句在各个阶段的耗时

show profiles for query 第几条语句;
mysql> show profile for query 5;
+--------------------------------+----------+
| Status                         | Duration |
+--------------------------------+----------+
| starting                       | 0.000044 |
| Executing hook on transaction  | 0.000005 |
| starting                       | 0.000018 |
| checking permissions           | 0.000006 |
| checking permissions           | 0.000006 |
| Opening tables                 | 0.002531 |
| init                           | 0.000011 |
| System lock                    | 0.000010 |
| optimizing                     | 0.000023 |
| statistics                     | 0.000114 |
| preparing                      | 0.000038 |
| Creating tmp table             | 0.000050 |
| executing                      | 0.000041 |
| checking permissions           | 0.000115 |
| end                            | 0.000007 |
| query end                      | 0.000006 |
| waiting for handler commit     | 0.000012 |
| closing tables                 | 0.000015 |
| freeing items                  | 0.000127 |
| cleaning up                    | 0.000073 |
+--------------------------------+----------+
20 rows in set, 1 warning (0.00 sec)

http://www.yayakq.cn/news/235174/

相关文章:

  • 株洲网站建设报价方案百度pc版网页
  • 安徽省工程建设信息网站重庆模板网站建站
  • 部队网站建设招标自媒体平台大全
  • 竞价推广账户托管服务旅游seo
  • 北京网站建设还公司什么购物软件好用
  • 快速刷网站排名宁德市蕉城区
  • 深圳网站制作公司专业网站城市建设局网站
  • 设计素材网站的问卷调查做网站优化期间能收到网站吗
  • 自助网站建设工具杨凌做网站
  • 上海小企业网站建设平台网络广告策划案例
  • xz域名网站轻量级WordPress
  • c2c的电子商务网站有哪些西安网站托管维护
  • 有关网站建设的网站如何设计网络
  • 灰系网站昆明app开发哪家好
  • 网站分类标准dede网站首页
  • 南阳网站排名优化自己做网站 需要哪些东西
  • 网站建设的一般步骤面试简历模板免费
  • 怎么做学校子网站网上学编程的有哪些比较好的网站
  • 做网站找 汇搜网络去哪家装修公司
  • 企业内部网站模板毕设代做的网站
  • 制作网站公司哪里好wordpress木马检测
  • 广州做鞋的网站wordpress关于页面
  • 网站对位山东企业网站建设公司
  • 广东官方网站建设智能物联网综合管理平台
  • 网站建设方案步骤wordpress进入不了后台
  • 做宽屏网站网站如何做视频教程
  • 江苏省交通建设质监网站wordpress主题自定义添加后台设置
  • 做网站推广的是什么职位荆州seo优化
  • 做网站的开发心得app开发与网站开发的区别
  • 北京西城网站建设公司深圳市建设集团和恒大的关系