<?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>Web Server linux Centos Games &#187; cache</title>
	<atom:link href="http://www.webserverthai.com/tag/cache/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.webserverthai.com</link>
	<description>Web Server linux Centos blog game</description>
	<lastBuildDate>Sun, 04 Sep 2011 05:27:12 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>ปรับ Mysql ให้ใช้ cache เพื่อเพิ่มความเร็ว</title>
		<link>http://www.webserverthai.com/mysql/%e0%b8%9b%e0%b8%a3%e0%b8%b1%e0%b8%9a-mysql-%e0%b9%83%e0%b8%ab%e0%b9%89%e0%b9%83%e0%b8%8a%e0%b9%89-cache-%e0%b9%80%e0%b8%9e%e0%b8%b7%e0%b9%88%e0%b8%ad%e0%b9%80%e0%b8%9e%e0%b8%b4%e0%b9%88%e0%b8%a1/</link>
		<comments>http://www.webserverthai.com/mysql/%e0%b8%9b%e0%b8%a3%e0%b8%b1%e0%b8%9a-mysql-%e0%b9%83%e0%b8%ab%e0%b9%89%e0%b9%83%e0%b8%8a%e0%b9%89-cache-%e0%b9%80%e0%b8%9e%e0%b8%b7%e0%b9%88%e0%b8%ad%e0%b9%80%e0%b8%9e%e0%b8%b4%e0%b9%88%e0%b8%a1/#comments</comments>
		<pubDate>Sun, 28 Mar 2010 02:19:54 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[mysql]]></category>
		<category><![CDATA[cache]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[server]]></category>

		<guid isPermaLink="false">http://www.webserverthai.com/?p=44</guid>
		<description><![CDATA[โดยปกติแล้วโดย default ของ mysql จะไม่มีการเปิดใช้ cache ทำให้ต้องทำการ query ใหม่ทุกครั้ง เราสามารถทำการเปิดการใช้ cache ได้โดยการแก้ไขค่าในไฟล์ ⁄etc⁄my.cnf แต่ก่อนอื่นต้องเช็คดูก่อนว่า server ของเรามีไฟล์ ⁄etc⁄my.cnf อยู่หรือยัง ถ้ายังให้ช้คำสั่งนี้เพื่อหาตัวอย่างไฟล์ my.cnf ในเครื่องของเรา #find ⁄ -name *.cnf จะใช้ไฟล์ไหนขึ้นอยู่กับ Ram ของเรา รายละเอียดดูในแต่ละไฟล์ได้เลย จากนั้น copy file นั้นไปเป็น my.cnf โดยคำสั่ง #cp (file) ⁄etc⁄my.cnf จากนั้นทำการแก้ไข ⁄etc⁄my.cnf โดยเพิ่มบรรทัดนี้เข้าไป query_cache_type= 1 แล้วอาจจะทำการ เพิ่มขนาดของ cache โดยแก้ query_cache_size= 64M ในตัวอย่างเพิ่ม cache เป็น 64M จากนั้น restart [...]]]></description>
			<content:encoded><![CDATA[<p>โดยปกติแล้วโดย default ของ mysql จะไม่มีการเปิดใช้ cache ทำให้ต้องทำการ query ใหม่ทุกครั้ง</p>
<p>เราสามารถทำการเปิดการใช้ cache ได้โดยการแก้ไขค่าในไฟล์ ⁄etc⁄my.cnf</p>
<p>แต่ก่อนอื่นต้องเช็คดูก่อนว่า server ของเรามีไฟล์ ⁄etc⁄my.cnf อยู่หรือยัง ถ้ายังให้ช้คำสั่งนี้เพื่อหาตัวอย่างไฟล์ my.cnf ในเครื่องของเรา</p>
<p>#find ⁄ -name *.cnf</p>
<p>จะใช้ไฟล์ไหนขึ้นอยู่กับ Ram ของเรา รายละเอียดดูในแต่ละไฟล์ได้เลย</p>
<p>จากนั้น copy file นั้นไปเป็น my.cnf โดยคำสั่ง</p>
<p>#cp (file) ⁄etc⁄my.cnf</p>
<p>จากนั้นทำการแก้ไข ⁄etc⁄my.cnf โดยเพิ่มบรรทัดนี้เข้าไป</p>
<p>query_cache_type= 1</p>
<p>แล้วอาจจะทำการ เพิ่มขนาดของ cache โดยแก้</p>
<p>query_cache_size= 64M</p>
<p>ในตัวอย่างเพิ่ม cache เป็น 64M</p>
<p>จากนั้น restart mysql ด้วยคำสั่ง</p>
<p>service mysqld restart</p>
<p>เป็นอันเสร็จ</p>
<p><a href="http://www.webserverthai.com/wp-content/uploads/2010/03/logoMysql.gif"><img class="size-full wp-image-46 alignleft" title="ปรับแต่ง Mysql" src="http://www.webserverthai.com/wp-content/uploads/2010/03/logoMysql.gif" alt="" width="425" height="283" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.webserverthai.com/mysql/%e0%b8%9b%e0%b8%a3%e0%b8%b1%e0%b8%9a-mysql-%e0%b9%83%e0%b8%ab%e0%b9%89%e0%b9%83%e0%b8%8a%e0%b9%89-cache-%e0%b9%80%e0%b8%9e%e0%b8%b7%e0%b9%88%e0%b8%ad%e0%b9%80%e0%b8%9e%e0%b8%b4%e0%b9%88%e0%b8%a1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

