<?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>ubuntu,debian,redhat -linuxany.com &#187; MySQL</title>
	<atom:link href="http://www.linuxany.com/archives/category/database/mysql/feed" rel="self" type="application/rss+xml" />
	<link>http://www.linuxany.com</link>
	<description>ubuntu,debian,redhat,fedora,centos</description>
	<lastBuildDate>Sun, 29 Aug 2010 06:52:10 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Improving Page Load Times(提升页面加载时间)</title>
		<link>http://www.linuxany.com/archives/645.html</link>
		<comments>http://www.linuxany.com/archives/645.html#comments</comments>
		<pubDate>Tue, 02 Dec 2008 09:00:28 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.linuxlaptop.cn/?p=645</guid>
		<description><![CDATA[There are a number of ways to improve the amount of time it takes visitors to load your Drupal powered web site. Measurements There are many tools that can be used to measure page load performance on your website. Here are some that we recommend. YSlow FireFox add-on The YSlow FireFox add-on is maintained by [...]]]></description>
		<wfw:commentRss>http://www.linuxany.com/archives/645.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MySQL InnoDB Performance Tuning(InnoDB性能调优)</title>
		<link>http://www.linuxany.com/archives/643.html</link>
		<comments>http://www.linuxany.com/archives/643.html#comments</comments>
		<pubDate>Tue, 02 Dec 2008 08:51:59 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[innodb]]></category>

		<guid isPermaLink="false">http://www.linuxlaptop.cn/?p=643</guid>
		<description><![CDATA[InnoDB is a transaction-safe, ACID compliant MySQL storage engine. It has commit, rollback, and crash recovery capabilities, and offers row level locking. The engine&#8217;s overview page explains, “InnoDB has been designed for maximum performance when processing large data volumes. Its CPU efficiency is probably not matched by any other disk-based relational database engine.” Insert Performance [...]]]></description>
		<wfw:commentRss>http://www.linuxany.com/archives/643.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>用mysqldumpslow分析MySQL的slow query log</title>
		<link>http://www.linuxany.com/archives/578.html</link>
		<comments>http://www.linuxany.com/archives/578.html#comments</comments>
		<pubDate>Sat, 22 Nov 2008 04:45:14 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[mysqldumpslow]]></category>

		<guid isPermaLink="false">http://www.linuxlaptop.cn/?p=578</guid>
		<description><![CDATA[mysql有一个功能就是可以log下来运行的比较慢的sql语句，默认是没有这个log的，为了开启这个功能，要修改my.cnf或者在mysql启动的时候加入一些参数。如果在my.cnf里面修改，需增加如下几行 long_query_time = 1log-slow-queries = /var/youpath/slow.loglog-queries-not-using-indexes long_query_time 是指执行超过多久的sql会被log下来，这里是1秒。 log-slow-queries 设置把日志写在那里，可以为空，系统会给一个缺省的文件host_name-slow.log，我生成的log就在mysql的data目录 log-queries-not-using-indexes 就是字面意思，log下来没有使用索引的query。 把上述参数打开，运行一段时间，就可以关掉了，省得影响生产环境。 接下来就是分析了，我这里的文件名字叫host-slow.log。 先mysqldumpslow –help以下，俺主要用的是 -s ORDER what to sort by (t, at, l, al, r, ar etc), ‘at’ is default-t NUM just show the top n queries-g PATTERN grep: only consider stmts that include this string-s，是order的顺序，说明写的不够详细，俺用下来，包括看了代码，主要有c,t,l,r和ac,at,al,ar，分别是按照query次数，时间，lock的时间和返回的记录数来排序，前面加了a的时倒叙-t，是top n的意思，即为返回前面多少条的数据-g，后边可以写一个正则匹配模式，大小写不敏感的 mysqldumpslow -s c -t 20 host-slow.logmysqldumpslow [...]]]></description>
		<wfw:commentRss>http://www.linuxany.com/archives/578.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PhpMyadmin把Mysql5降级导入到Mysql4</title>
		<link>http://www.linuxany.com/archives/502.html</link>
		<comments>http://www.linuxany.com/archives/502.html#comments</comments>
		<pubDate>Mon, 20 Oct 2008 04:28:15 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[phpmyadmin]]></category>

		<guid isPermaLink="false">http://www.linuxlaptop.cn/?p=502</guid>
		<description><![CDATA[1：用Dreamweaver或者别的代码编辑器打开从Mysql5导出的.sql数据库文件 2：去掉数据库里类似DEFAULT CHARSET=utf8这样的字眼 3：把Mysql数据库里的ENGINE=MyISAM替换成TYPE=MyISAM 4：再用PhpMyadmin导入Mysql4就可以了 您还可能感兴趣的内容在vim/vi中快速执行php或c/c++的方法Eclipse + CDT + MinGW + MySQL环境搭建解决方案Improving Page Load Times(提升页面加载时间)MySQL InnoDB Performance Tuning(InnoDB性能调优)用mysqldumpslow分析MySQL的slow query log]]></description>
		<wfw:commentRss>http://www.linuxany.com/archives/502.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>mysql show processlist 命令详解</title>
		<link>http://www.linuxany.com/archives/490.html</link>
		<comments>http://www.linuxany.com/archives/490.html#comments</comments>
		<pubDate>Sun, 05 Oct 2008 15:42:39 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[processlist]]></category>

		<guid isPermaLink="false">http://www.linuxlaptop.cn/?p=490</guid>
		<description><![CDATA[先简单说一下各列的含义和用途，第一列，id，不用说了吧，一个标识，你要kill一个语句的时候很有用。user列，显示单前用户，如果不是root，这个命令就只显示你权限范围内的sql语句。host列，显示这个语句是从哪个ip的哪个端口上发出的。呵呵，可以用来追踪出问题语句的用户。db列，显示这个进程目前连接的是哪个数据库。command列，显示当前连接的执行的命令，一般就是休眠（sleep），查询（query），连接（connect）。time列，此这个状态持续的时间，单位是秒。state列，显示使用当前连接的sql语句的状态，很重要的列，后续会有所有的状态的描述，请注意，state只是语句执行中的某一个状态，一个sql语句，已查询为例，可能需要经过copying to tmp table，Sorting result，Sending data等状态才可以完成，info列，显示这个sql语句，因为长度有限，所以长的sql语句就显示不全，但是一个判断问题语句的重要依据。 这个命令中最关键的就是state列，mysql列出的状态主要有以下几种： 　　Checking table 　正在检查数据表（这是自动的）。 　Closing tables 　正在将表中修改的数据刷新到磁盘中，同时正在关闭已经用完的表。这是一个很快的操作，如果不是这样的话，就应该确认磁盘空间是否已经满了或者磁盘是否正处于重负中。 　Connect Out 　复制从服务器正在连接主服务器。 　Copying to tmp table on disk 　由于临时结果集大于 tmp_table_size，正在将临时表从内存存储转为磁盘存储以此节省内存。 　Creating tmp table 　正在创建临时表以存放部分查询结果。 　deleting from main table 　服务器正在执行多表删除中的第一部分，刚删除第一个表。 　deleting from reference tables 　服务器正在执行多表删除中的第二部分，正在删除其他表的记录。 　Flushing tables 　正在执行 FLUSH TABLES，等待其他线程关闭数据表。 　Killed 　发送了一个kill请求给某线程，那么这个线程将会检查kill标志位，同时会放弃下一个kill请求。MySQL会在每次的主循环中检查kill标志位，不过有些情况下该线程可能会过一小段才能死掉。如果该线程程被其他线程锁住了，那么kill请求会在锁释放时马上生效。 　Locked 　被其他查询锁住了。 　Sending data 　正在处理 SELECT 查询的记录，同时正在把结果发送给客户端。 　Sorting for group [...]]]></description>
		<wfw:commentRss>http://www.linuxany.com/archives/490.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
