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

小学学校网站怎么在建设银行网站留言

小学学校网站,怎么在建设银行网站留言,企业工商登记信息查询系统,山西省住房建设厅网站文章目录3.Show Profile3.1 show profile是什么3.2 分析步骤4.全局查询日志4.1配置启用4.2编码启用3.Show Profile 3.1 show profile是什么 show profile是mysql提供可以用来分析当前会话中语句执行的资源消耗情况。可以用于SQL的调优的测量 默认情况下#xff0c;参数处于关… 文章目录3.Show Profile3.1 show profile是什么3.2 分析步骤4.全局查询日志4.1配置启用4.2编码启用3.Show Profile 3.1 show profile是什么 show profile是mysql提供可以用来分析当前会话中语句执行的资源消耗情况。可以用于SQL的调优的测量 默认情况下参数处于关闭状态并保存最近15次的运行结果官网 3.2 分析步骤 1.是否支持看看当前的mysql版本是否支持 mysql Show variables like profiling; ---------------------- | Variable_name | Value | ---------------------- | profiling | OFF | ---------------------- 1 row in set (0.01 sec)默认是关闭使用前需要开启2.开启功能默认是关闭使用前需要开启 mysql set profiling1; Query OK, 0 rows affected, 1 warning (0.00 sec)mysql Show variables like profiling; ---------------------- | Variable_name | Value | ---------------------- | profiling | ON | ---------------------- 1 row in set (0.00 sec)3.运行SQL mysql select * from students; ------------- | id | name | ------------- | 1 | zhao1 | | 2 | zhao2 | | 3 | zhao3 | ------------- 3 rows in set (0.03 sec)4.查看结果 show profiles;mysql show profiles; -------------------------------------------------------- | Query_ID | Duration | Query | -------------------------------------------------------- | 1 | 0.00189725 | Show variables like profiling | | 2 | 0.00037950 | SELECT DATABASE() | | 3 | 0.00436850 | show databases | | 4 | 0.00493400 | show tables | | 5 | 0.00287150 | show tables | | 6 | 0.02086075 | select * from students | -------------------------------------------------------- 6 rows in set, 1 warning (0.00 sec)5.诊断SQL show profile cpu,block io for query n #(n为上一步前面的问题SQL数字号码);mysql show profile cpu,block io for query 6; --------------------------------------------------------------------------------------------- | Status | Duration | CPU_user | CPU_system | Block_ops_in | Block_ops_out | --------------------------------------------------------------------------------------------- | starting | 0.000111 | 0.000110 | 0.000000 | 0 | 0 | | Executing hook on transaction | 0.000012 | 0.000011 | 0.000000 | 0 | 0 | | starting | 0.000018 | 0.000018 | 0.000000 | 0 | 0 | | checking permissions | 0.000016 | 0.000016 | 0.000000 | 0 | 0 | | Opening tables | 0.000062 | 0.000062 | 0.000000 | 0 | 0 | | init | 0.000016 | 0.000016 | 0.000000 | 0 | 0 | | System lock | 0.000021 | 0.000021 | 0.000000 | 0 | 0 | | optimizing | 0.000073 | 0.000056 | 0.000000 | 0 | 0 | | statistics | 0.000029 | 0.000029 | 0.000000 | 0 | 0 | | preparing | 0.000035 | 0.000035 | 0.000000 | 0 | 0 | | executing | 0.020360 | 0.000411 | 0.000000 | 32 | 0 | | end | 0.000016 | 0.000014 | 0.000000 | 0 | 0 | | query end | 0.000008 | 0.000008 | 0.000000 | 0 | 0 | | waiting for handler commit | 0.000012 | 0.000012 | 0.000000 | 0 | 0 | | closing tables | 0.000013 | 0.000013 | 0.000000 | 0 | 0 | | freeing items | 0.000027 | 0.000028 | 0.000000 | 0 | 0 | | cleaning up | 0.000033 | 0.000033 | 0.000000 | 0 | 0 | --------------------------------------------------------------------------------------------- 17 rows in set, 1 warning (0.00 sec)参数备注 type: | ALL --显示所有的开销信息 | BLOCK IO --显示块IO相关开销 | CONTEXT SWITCHES --上下文切换相关开销 | CPU --显示CPU相关开销信息 | IPC --显示发送和接收相关开销信息 | MEMORY --显示内存相关开销信息 | PAGE FAULTS --显示页面错误相关开销信息 | SOURCE --显示和Source_functionSource_fileSource_line相关的开销信息 | SWAPS --显示交换次数相关开销的信息 6.日常开发需要注意的结论 converting HEAP to MyISAM 查询结果太大内存都不够用了往磁盘上搬了。Creating tmp table 创建临时表拷贝数据到临时表用完再删除Copying to tmp table on disk 把内存中临时表复制到磁盘危险locked4.全局查询日志 4.1配置启用 /etc/mysql/mysql.conf.d/mysqld.cnf # Log all queries # Be aware that this log type is a performance killer. # general_log_file /var/log/mysql/query.log # general_log 14.2编码启用 #命令 尽量不要在生产环境开启这个功能。 set global general_log1;#全局日志可以存放到日志文件中也可以存放到Mysql系统表中。存放到日志中性能更好一些存储到表中 set global log_outputTABLE;#此后 你所编写的sql语句将会记录到mysql库里的general_log表可以用下面的命令查看select * from mysql.general_log;
http://wiki.neutronadmin.com/news/210000/

相关文章:

  • 因酷西安网站建设公司怎么样兰州免费网站建设
  • 长沙银狐做网站河南最新新闻事件今天
  • ui设计师面试手机网站seo软件
  • php怎么用来做网站优化的概念
  • 免费网站看完你会回来感谢我的如何做彩票销售网站
  • 做外贸网站 深圳icp备案 网站名称
  • 织梦仿asp网站苏州公司网站建设电话
  • 企业网站建设公司怎么做网络推广的方式和途径有哪些
  • 本地南昌网站建设同步wordpress文章
  • 做短租公寓民宿网站深圳平台网站开发
  • 计算机网站的开发流程红尘资源网
  • 商城微网站建设方案电商品牌排行榜
  • 网赢做网站怎么样合肥那个公司做网站优化好
  • 网站开发软硬件一个域名能同时做2个网站吗
  • 做智能家居网站需要的参考文献企业建设网站方案
  • 网站开发junke100百度一下首页设为主页
  • 网站建设培训报名有什么做旅游攻略的网站
  • 新城建站网站建设与运营预算
  • 网站后台账号密码破解网站在工信部备案
  • 小型教育网站开发聊城网站营销信息
  • asp网站设计代做成都旅游住哪里便宜又方便
  • 网站建设 豫icp备百度搜索引擎盘搜搜
  • 大望路做网站的公司做网站的公司创业
  • 用腾讯云做会员网站网架公司出水暖电施工图吗?
  • 网站的换肤功能怎么做服装公司企业简介模板
  • 怎样做淘宝优惠券网站设计网站如何融入非关系数据库
  • 网站需要兼容哪些浏览器建设什么网站可以赚钱
  • asp 做网站的缺点企业信息管理平台
  • 为传销做网站seo网站关键词排名提升
  • 江苏省华建建设股份有限网站哪些网站做的美