<?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; mysql</title>
	<atom:link href="http://www.162cm.com/archives/category/mysql/feed" rel="self" type="application/rss+xml" />
	<link>http://www.162cm.com</link>
	<description>一米六二，绝不转载</description>
	<lastBuildDate>Wed, 08 Sep 2010 12:17:39 +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>整理了一份招PHP高级工程师的面试题</title>
		<link>http://www.162cm.com/archives/972.html</link>
		<comments>http://www.162cm.com/archives/972.html#comments</comments>
		<pubDate>Thu, 15 Oct 2009 07:31:03 +0000</pubDate>
		<dc:creator>一米六二</dc:creator>
				<category><![CDATA[js]]></category>
		<category><![CDATA[linux/unix]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[php性能]]></category>
		<category><![CDATA[未分类]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[招聘]]></category>
		<category><![CDATA[面试题]]></category>

		<guid isPermaLink="false">http://www.162cm.com/?p=972</guid>
		<description><![CDATA[嗯，基本上这些题都答得好 那就&#8230; 直接上题. 1. 基本知识点 HTTP协议中几个状态码的含义:503 500 401 200 301 302。。。 Include require include_once require_once 的区别. PHP/Mysql中几个版本的进化史，比如mysql4.0到4.1，PHP 4.x到5.1的重大改进等等。 HEREDOC介绍 写出一些php魔幻方法; 一些编译php时的configure 参数 向php传入参数的两种方法。 (mysql)请写出数据类型(int char varchar datetime text)的意思; 请问varchar和char有什么区别; error_reporting 等调试函数使用 您是否用过版本控制软件? 如果有您用的版本控制软件的名字是? posix和perl标准的正则表达式区别; Safe_mode 打开后哪些地方受限. 写代码来解决多进程/线程同时读写一个文件的问题。 写一段上传文件的代码。 Mysql 的存储引擎,myisam和innodb的区别。 &#8230; <a href="http://www.162cm.com/archives/972.html">继续阅读 <span class="meta-nav">&#8594;</span></a>]]></description>
		<wfw:commentRss>http://www.162cm.com/archives/972.html/feed</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>测试FusionIO:strict_sync太秀逗了&#8230;</title>
		<link>http://www.162cm.com/archives/901.html</link>
		<comments>http://www.162cm.com/archives/901.html#comments</comments>
		<pubDate>Tue, 23 Jun 2009 23:42:06 +0000</pubDate>
		<dc:creator>一米六二</dc:creator>
				<category><![CDATA[mysql]]></category>
		<category><![CDATA[译文]]></category>

		<guid isPermaLink="false">http://www.162cm.com/?p=901</guid>
		<description><![CDATA[这是一篇译文，原文地址是:   http://www.mysqlperformanceblog.com/2009/06/15/testing-fusionio-strict_sync-is-too-strict/ 随着新的更新FusionIO驱动的更新,我能够在我的戴尔R900与Ubuntu 8.10上进行尝鲜,而不再需要痛苦地编译驱动或是降级kernel.现在我决定测试一下strict_sync模式。 据我所知FusionIO默认情况下，比如英特尔的SSD ，是对应用程序“撒谎”了，fsync()并不是真正的发生了，它仍然只是提交到了内存而不是最终的磁盘。FusionIO还有一个“ strict_sync ”模式，可以保证fsync函数可靠地操作。 好啊兄弟，让我们来压一下性能&#8212;通常我在100w数据(约9GB数据)，O_DIRECT模式下开着3GB的buffer_pool来搞这个测试。 原始测试数量参见这里 结果用TPM （每分钟的事务数）表示 ，这样更清楚一些。图形显示，结果是是随着时间[X轴]不断变化 。 这个图形已经很明显，我都不需要再用文字来说明了。。。 但是我没有测试，在断电的情况下，在默认模式下处理、结束事务的情况。这个需要读者您检查一下。 本文由蝌蚪安尼友情赞助.]]></description>
		<wfw:commentRss>http://www.162cm.com/archives/901.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>怎样用一行脚本美化/etc/my.cnf文件</title>
		<link>http://www.162cm.com/archives/898.html</link>
		<comments>http://www.162cm.com/archives/898.html#comments</comments>
		<pubDate>Mon, 22 Jun 2009 15:36:24 +0000</pubDate>
		<dc:creator>一米六二</dc:creator>
				<category><![CDATA[mysql]]></category>
		<category><![CDATA[perl]]></category>
		<category><![CDATA[译文]]></category>

		<guid isPermaLink="false">http://www.162cm.com/?p=898</guid>
		<description><![CDATA[原文地址:http://www.mysqlperformanceblog.com/2009/06/15/how-to-pretty-print-mycnf-with-a-one-liner/ 当我在一台服务器上转悠时，我会经常想看看/etc/my.cnf文件格式，当然是想看格化美观，没有注释的。这样的一行Perl就能将美化输出文件： 1.perl -ne &#8216;m/^([^#][^\s=]+)\s*(=.*&#124;)/ &#38;&#38; printf(&#8220;%-35s%s\n&#8221;, $1, $2)&#8217; /etc/my.cnf 2.[client] 3.port = 3306 4.socket = /var/run/mysqld/mysqld.sock 5.[ mysqld_safe ] 6.socket = /var/run/mysqld/mysqld.sock 7.nice = 0 8.[ mysqld ] 9.user = mysql 10.pid-file = /var/run/mysqld/mysqld.pid 11.socket = /var/run/mysqld/mysqld.sock 12.port = &#8230; <a href="http://www.162cm.com/archives/898.html">继续阅读 <span class="meta-nav">&#8594;</span></a>]]></description>
		<wfw:commentRss>http://www.162cm.com/archives/898.html/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>缓慢的drop table 操作</title>
		<link>http://www.162cm.com/archives/896.html</link>
		<comments>http://www.162cm.com/archives/896.html#comments</comments>
		<pubDate>Mon, 22 Jun 2009 23:26:09 +0000</pubDate>
		<dc:creator>一米六二</dc:creator>
				<category><![CDATA[mysql]]></category>
		<category><![CDATA[译文]]></category>
		<category><![CDATA[performance]]></category>

		<guid isPermaLink="false">http://www.162cm.com/?p=896</guid>
		<description><![CDATA[原文地址:http://www.mysqlperformanceblog.com/2009/06/16/slow-drop-table/ 大家都知道,Ext3并不是最有效的文件系统，例如，删除文件会非常缓慢(那真是一个痛苦的过程，不是吗老兄?)，造成大量的随机I / O。然而事实上,有时候它比你想象的更能影响MySQL的性能。那么，什么时候会发生，又为什么会发生呢? 当您运行DROP TABLE时,会有好几件事情需要去做:对表进行write lock,这样它不会被其他线程使用;存储引擎删除数据文件;当然,最后MySQL会删除表定义文件（.frm文件）。这还不是所有的事，还有另外一件事需要去做： 代码: VOID(pthread_mutex_lock(&#38;LOCK_open)); error= mysql_rm_table_part2(thd, tables, if_exists, drop_temporary, 0, 0); pthread_mutex_unlock(&#38;LOCK_open); 这整段删除表操作的代码都被LOCK_open互斥信号量所包围。这个互斥信号量在MySQL中不少地方都用到过,但主要是表在开启或关闭的时候。这意味着，当LOCK_open锁定时，没有查询语句可以执行，因为他们阻止任何访问。 这就解释了在ext3文件系统上删除10GB的文件何时成为了痛苦的等待的开始。删除10GB的文件将持续一段时间，如果这是一个MySQL表,这段时间mutex里将会一直存在,而这个互斥会拖延所有查询。 纯文字 代码： +&#8212;&#8211;+&#8212;&#8212;+&#8212;&#8212;&#8212;&#8211;+&#8212;&#8212;+&#8212;&#8212;&#8212;+&#8212;&#8212;+ &#8212;&#8212;&#8212;&#8212;&#8212;-+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212; &#8212;&#8212;&#8212;&#8212;&#8212;+ &#124; Id &#124; User &#124; Host &#124; db &#124; Command &#124; Time &#124; State &#124; Info &#8230; <a href="http://www.162cm.com/archives/896.html">继续阅读 <span class="meta-nav">&#8594;</span></a>]]></description>
		<wfw:commentRss>http://www.162cm.com/archives/896.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>更改字符集设置[译文]</title>
		<link>http://www.162cm.com/archives/856.html</link>
		<comments>http://www.162cm.com/archives/856.html#comments</comments>
		<pubDate>Tue, 24 Mar 2009 21:07:38 +0000</pubDate>
		<dc:creator>一米六二</dc:creator>
				<category><![CDATA[mysql]]></category>
		<category><![CDATA[译文]]></category>
		<category><![CDATA[performance]]></category>
		<category><![CDATA[字符集]]></category>

		<guid isPermaLink="false">http://www.162cm.com/?p=856</guid>
		<description><![CDATA[更改字符集设置 原文设置:http://www.mysqlperformanceblog.com/2009/03/17/converting-character-sets/ Web世界已经走向UTF8;Drizzle选中它作为默认的字符集。大多网站后端用utf-8来存储文本数据，另外那些用latin1字符集的网也开始将他们的数据库迁移到utf8;google一下&#8221;mysql convert charset to utf8&#8243;,可以找到大量的网站，每个途径都有些微的不同，又在某些方面都有些不对。我会总结一下这些方法，说明他们为什么不奏效，然后给出一段脚本，大致上可以用来转换一个数据库或是一系列表到目标字标集。 方法一: ALTER TABLE `t1` CONVERT TO CHARACTER SET utf8 COLLATE utf8_general_ci; 拿这个数据表作例子，我们可以看到这种方法为啥子行不通呢。 SQL: &#160; &#160;&#160; 1. &#160;&#160; &#160; &#160;mysql&#62; CREATE TABLE `t1` ( &#160;&#160; 2. &#160;&#160; &#160; &#160;-&#62;&#160; &#160;`c1` text NOT NULL &#160;&#160; &#8230; <a href="http://www.162cm.com/archives/856.html">继续阅读 <span class="meta-nav">&#8594;</span></a>]]></description>
		<wfw:commentRss>http://www.162cm.com/archives/856.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

<!-- Dynamic page generated in 0.454 seconds. -->
<!-- Cached page generated by WP-Super-Cache on 2010-09-10 06:34:33 -->
