<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>系统运维 &#187; 慢查询</title>
	<atom:link href="http://www.osyunwei.com/archives/tag/%E6%85%A2%E6%9F%A5%E8%AF%A2/feed" rel="self" type="application/rss+xml" />
	<link>https://www.osyunwei.com</link>
	<description>国产化OS/AnolisOS/openEuler/RHEL/CentOS/Rocky Linux/Debian/Ubuntu Linux FreeBSD 服务器教程 &#124; Windows Server 2003/2008/2012/2016/2019/2022/2025服务器教程</description>
	<lastBuildDate>Tue, 14 Apr 2026 10:59:22 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Linux下MySQL慢查询分析mysqlsla安装使用</title>
		<link>https://www.osyunwei.com/archives/7659.html</link>
		<comments>https://www.osyunwei.com/archives/7659.html#comments</comments>
		<pubDate>Tue, 27 May 2014 02:57:22 +0000</pubDate>
		<dc:creator>qihang01</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[mysqlsla]]></category>
		<category><![CDATA[慢查询]]></category>

		<guid isPermaLink="false">http://www.osyunwei.com/?p=7659</guid>
		<description><![CDATA[说明： 操作系统：CentOS 5.X 64位 MySQL版本：mysql-5.5.35 MySQL配置文件：/etc/my.cnf MySQL 数据库存放目录：/data/mysql 实现目的：开启MySQL慢查询日志功能，安装使用MySQL慢查询分析mysqlsla 具体操作： 一、开启MySQL慢查询功能 mysql -u  root -p  #进入MySQL控制台 show variables like '%slow%';   #查看MySQL慢查询是否开启 set global slow_query_log=ON;   #开启MySQL慢查询功能 show variables like "long_query_time";  #查看MySQL慢查询时间设置，默认10秒 set global long_query_time=5;  #修改为记录5秒内的查询 select sleep(6);  #测试MySQL慢查询 show variables like "%slow%";  #查看MySQL慢查询日志路径 show global status like '%slow%';  #查看MySQL慢查询状态 系统运维  www.osyunwei.com  温馨提醒：qihang01原创内容©版权所有,转载请注明出处及原文链 exit;  #退出MySQL控制台 cat /data/mysql/127-slow.log  [...]<p><a rel="bookmark" href="https://www.osyunwei.com/archives/7659.html" target="_blank">查看全文</a></p>]]></description>
		<wfw:commentRss>https://www.osyunwei.com/archives/7659.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
