<?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.pigo.idv.tw/archives/category/prog/mysql-prog/feed" rel="self" type="application/rss+xml" />
	<link>http://www.pigo.idv.tw</link>
	<description>嘿嘿嘿嘿 .....</description>
	<lastBuildDate>Sat, 04 Feb 2012 12:35:10 +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>MariaDB 5.3.1 beta 出現了</title>
		<link>http://www.pigo.idv.tw/archives/1067</link>
		<comments>http://www.pigo.idv.tw/archives/1067#comments</comments>
		<pubDate>Sun, 25 Sep 2011 14:51:43 +0000</pubDate>
		<dc:creator>pigo</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[mariadb]]></category>

		<guid isPermaLink="false">http://www.pigo.idv.tw/?p=1067</guid>
		<description><![CDATA[其實家裡的 Server(本站) 已經以 MariaDB 5.2 運作好一陣子了 , 都沒什問題 , 今天上去 MariaDb 官方網站看了一下 , 9/10 推出了 MariaDB beta 版 這個版本仍是以 MariaDb 5.2 為基礎 , 著重在 subquery 效能的提升 , 同時也將部分 MySQL 6.0 ㄧ些代碼拿來用 但其中有一項值得注意 , 就是 5.3 已經有將 HandlerSocket 包進來了 , 老玩家應該知道這是什 , 但第一次聽過的人可能不明瞭 , HandlerSocket 是透過另一個通訊 port 讓 client 端可以下達 NoSQL Style 的命令 , 對於需要高速的存取資料的需求來說很有幫助 詳細的更新請至關網看便瞭 http://kb.askmonty.org/en/what-is-mariadb-53]]></description>
		<wfw:commentRss>http://www.pigo.idv.tw/archives/1067/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>家裡的 Server 把 MySQL 換成 MariaDb 了</title>
		<link>http://www.pigo.idv.tw/archives/904</link>
		<comments>http://www.pigo.idv.tw/archives/904#comments</comments>
		<pubDate>Sat, 27 Nov 2010 08:49:48 +0000</pubDate>
		<dc:creator>pigo</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[sphinx]]></category>

		<guid isPermaLink="false">http://www.pigo.idv.tw/?p=904</guid>
		<description><![CDATA[最近看見 MariaDb 出了 5.2.3 的版本 這個版本已經是 Stable 版了 , 相容 MySQL 5.1 , 大概說一下這一版的特色 MariaDb 一開始就以 XTraDb 取代InnoDb Engine , 相容於 InnoDb , 但效能更好 , 在 phpMyAdmin 中建立一個 InnoDB 就等於是 XtraDb 了 以 Aria Table 取代 MyISAM 為預設 Table (原本的 MyISAM 也可以用) , 若原始資料仍是 MyISAM , 但在很多情況下 MySQL 會開啟 tmp table , 這時候會用 Aria , [...]]]></description>
		<wfw:commentRss>http://www.pigo.idv.tw/archives/904/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>我很納悶&#8230;怎麼一堆 PHP 程式設計師不知道要怎麼防 SQL Injection</title>
		<link>http://www.pigo.idv.tw/archives/820</link>
		<comments>http://www.pigo.idv.tw/archives/820#comments</comments>
		<pubDate>Tue, 22 Jun 2010 11:34:09 +0000</pubDate>
		<dc:creator>pigo</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.pigo.idv.tw/?p=820</guid>
		<description><![CDATA[從 5 月份到 6 月份這段期間面試了好多個 PHP 程式設計師 , 包括也曾開職缺面試資訊主管 我都會問一個問題 , SQL Injection 怎麼防 ? 我說真的 , 大概面試了 10 來位 , 沒有一個人能夠脫口而出 , 不知道 SQL Injection 的程式設計師不會就算了 , 知道的人居然沒有一個人知道 PHP 原本就有功能可以過濾掉特殊字元 , 甚至還會回答用 str_replace 方法來過濾 , 所以我很想給看到這篇的人知道 如果你是用 mysql function , 那就是用 mysql_real_escape_string 去過濾 如果你是用 PDO , 就是用 bind value 作法 例如 ?View Code PHP1 [...]]]></description>
		<wfw:commentRss>http://www.pigo.idv.tw/archives/820/feed</wfw:commentRss>
		<slash:comments>37</slash:comments>
		</item>
		<item>
		<title>善用 sub query 優化 order by limit</title>
		<link>http://www.pigo.idv.tw/archives/390</link>
		<comments>http://www.pigo.idv.tw/archives/390#comments</comments>
		<pubDate>Mon, 21 Sep 2009 17:14:34 +0000</pubDate>
		<dc:creator>pigo</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[limit]]></category>
		<category><![CDATA[order by]]></category>
		<category><![CDATA[sub query]]></category>
		<category><![CDATA[子查詢]]></category>

		<guid isPermaLink="false">http://www.pigo.idv.tw/?p=390</guid>
		<description><![CDATA[假設 , 我們有個 Table 叫 test ,&#160; 有 20 萬筆記錄 , test 有 20 個欄位好了&#160; , 其中有一個欄位 post_time 有建立索引可以排序用的 , 而有個主鍵 id 下一道指令 ?View Code SQLSELECT * FROM test ORDER BY post_time DESC LIMIT 150000,10 這道指令看似簡單 , 理論上應該跑很快 ~ 實際上卻不然 , 也許跑上 20 秒 , 因為這牽扯到 MySQL Server 的 sort buffer 大小 ,&#160; 因為這道指令可能會因為 buffer [...]]]></description>
		<wfw:commentRss>http://www.pigo.idv.tw/archives/390/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>推一下 RoundCube WebMail Password Plugin</title>
		<link>http://www.pigo.idv.tw/archives/381</link>
		<comments>http://www.pigo.idv.tw/archives/381#comments</comments>
		<pubDate>Fri, 11 Sep 2009 07:36:31 +0000</pubDate>
		<dc:creator>pigo</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[postfix]]></category>
		<category><![CDATA[roundcube]]></category>

		<guid isPermaLink="false">http://www.pigo.idv.tw/?p=381</guid>
		<description><![CDATA[這一篇是記錄一下當 Mail Server 是採用 postfix + mysql 認證時 , 如何設定 RoundCube 的改密碼 plugin 平台是 CentOS 5.3 + mysql 5.1 + postfix_mysql + roundcube 0.3 stable 設定方法很簡單 先找到 roundcube 安裝目錄下的 plugins/password 這個目錄 把 config.inc.php.dist 改成 config.inc.php 或用複製成另一個新檔都可以 , 然後要修改 config.inc.php 我們必須先修改以下三個參數 $rcmail_config['password_driver'] : 這個是設定密碼密碼認證的方式 $rcmail_config['password_db_dsn']&#160; : 這個是設定 posftix 認證的資料庫連接資訊(注意!不是roundcube資料庫喔) $rcmail_config['password_query'] : 這是設定修改密碼的 SQL Query $rcmail_config['password_driver'] 必須設定為 [...]]]></description>
		<wfw:commentRss>http://www.pigo.idv.tw/archives/381/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>mysqlftppc-bigram 安裝</title>
		<link>http://www.pigo.idv.tw/archives/353</link>
		<comments>http://www.pigo.idv.tw/archives/353#comments</comments>
		<pubDate>Wed, 12 Aug 2009 12:16:18 +0000</pubDate>
		<dc:creator>pigo</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[bigram]]></category>

		<guid isPermaLink="false">http://www.pigo.idv.tw/?p=353</guid>
		<description><![CDATA[這一篇是為了報答某論壇站長說若去澳門玩費用全免而寫的 .. 也要看我有沒有錢搭飛機去澳門 &#8230; 唉 mysqlftppc-bigram 是 MySQL 的 FullText Plugin , 是用 n-gram 演算法去斷詞因此得以支援中文全文索引 , 目前僅支援 myisam 表格 , 且中文索引的欄位必須為 utf-8 , 廢話不說以下就是安裝過程 平台 : CentOS 5.3 64bit 需要的相關件 MySQL 版本必須是 5.1 或以上 最新的 mysqlftppc-bigram , http://sourceforge.net/projects/mysqlftppc/ mysql-devel 套件 , 可先用 yum&#160; 先安裝好 libicu-devel 套件 , 要有這個才可以支援 UNICODE , 可先用 yum 先安裝好 &#160; 下載 [...]]]></description>
		<wfw:commentRss>http://www.pigo.idv.tw/archives/353/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>myisam 真的快嗎 ?</title>
		<link>http://www.pigo.idv.tw/archives/349</link>
		<comments>http://www.pigo.idv.tw/archives/349#comments</comments>
		<pubDate>Mon, 10 Aug 2009 15:29:43 +0000</pubDate>
		<dc:creator>pigo</dc:creator>
				<category><![CDATA[MySQL]]></category>

		<guid isPermaLink="false">http://www.pigo.idv.tw/?p=349</guid>
		<description><![CDATA[似乎大家對 myisam 的初步認識就是很快 , 不支援 Transaction , 適合當小型快速的資料儲存 , 但我看很多論壇(包括我公司) , 一旦會員很多的時候 , 不管用多好的硬體 ,&#160; 總是會常常有 Slow Query 出現 , 而且若網站的連接數量越多越容易出現 , 可是 CPU LOADING 用的卻不高 但可能自己把 Slow Query 拿來再執行的時候會覺得很快啊 &#8230;. 怎會這樣 &#62;&#60; 這應該要歸罪於 myisam 做任何的資料異動總是會 Table Lock , 因此常常在 phpmyadmin 中看看狀態 , 會發現很多 Table Lock Wait &#8230; 是的 , 該死的 Table Lock , 如果剛好有某一條連線所做的 [...]]]></description>
		<wfw:commentRss>http://www.pigo.idv.tw/archives/349/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>MySQL 有幾個很詭異的地方</title>
		<link>http://www.pigo.idv.tw/archives/346</link>
		<comments>http://www.pigo.idv.tw/archives/346#comments</comments>
		<pubDate>Thu, 30 Jul 2009 09:42:10 +0000</pubDate>
		<dc:creator>pigo</dc:creator>
				<category><![CDATA[MySQL]]></category>

		<guid isPermaLink="false">http://www.pigo.idv.tw/?p=346</guid>
		<description><![CDATA[最近一直在那悶 , 為何 MySQL 在某些地方特別慢 舉例 1. 執行 SELECT count( &#8230; ) WHERE &#8230;. 這種命令 , 會非常慢 2. 執行 SELECT &#8230;.. ORDER BY key1,key2 這種命令 , 會非常慢 以上兩種應用情況會發生在資料筆數很多(超過百萬筆)的時候發生 , 在我現任職的公司機器上有 8G RAM 的情況下 , 各種 buffer 調很高一樣慢 由於公司是經營論壇 , 其實在資料的正確性上若不是一定要百分百正確 , 其實仔細研究一下 Discuz , Discuz 用了很多取巧的方式 例如我們要計算某個討論版有多少主題 , 如果真的去 SELECT count() &#8230; ,那真的會掛掉 , Discuz [...]]]></description>
		<wfw:commentRss>http://www.pigo.idv.tw/archives/346/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MySQL FullText plugin : bigram  試用</title>
		<link>http://www.pigo.idv.tw/archives/340</link>
		<comments>http://www.pigo.idv.tw/archives/340#comments</comments>
		<pubDate>Wed, 22 Jul 2009 15:51:19 +0000</pubDate>
		<dc:creator>pigo</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[FullText]]></category>
		<category><![CDATA[mysql]]></category>

		<guid isPermaLink="false">http://www.pigo.idv.tw/?p=340</guid>
		<description><![CDATA[MySQL 內建的 FullText Engine 不支援中文是眾所皆知的 在 5.0 版之後 , 有所謂的 plugin 功能 , 其他非官方的人可以寫 plugin 去加強 MySQL 功能 而在 FullText 的部分也有人去寫 例如 Spinx ( http://sphinxsearch.com/ )&#160;: 這套號稱支援中文全文索引 , 支援 myisam 及 innodb , 不過我還沒試 , 但好像不是同步作索引 另外我要介紹一個網站 http://sourceforge.net/projects/mysqlftppc/ 這裡面有很多種 FullText Plugin , 其中有個叫 bigram 的支援中文喔 , 必須在 mysql 5.1 版以上運作 比較麻煩的是 , 要自己編譯 , 我在 [...]]]></description>
		<wfw:commentRss>http://www.pigo.idv.tw/archives/340/feed</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>轉貼 : MySQL再易主，創始人擔憂前景另創瑪莉亞資料庫</title>
		<link>http://www.pigo.idv.tw/archives/316</link>
		<comments>http://www.pigo.idv.tw/archives/316#comments</comments>
		<pubDate>Thu, 04 Jun 2009 08:11:03 +0000</pubDate>
		<dc:creator>pigo</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[技術新聞區]]></category>

		<guid isPermaLink="false">http://www.pigo.idv.tw/?p=316</guid>
		<description><![CDATA[原文網址 http://www.ithome.com.tw/itadm/article.php?c=55234]]></description>
		<wfw:commentRss>http://www.pigo.idv.tw/archives/316/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

