<?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>BlueJacket With Silent &#187; Mysql</title>
	<atom:link href="http://phpsrv.nutn.edu.tw/~silent/archives/tag/mysql/feed" rel="self" type="application/rss+xml" />
	<link>http://phpsrv.nutn.edu.tw/~silent</link>
	<description>資訊技術手札</description>
	<lastBuildDate>Wed, 21 Sep 2011 09:35:21 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<atom:link rel='hub' href='http://phpsrv.nutn.edu.tw/~silent/?pushpress=hub'/>
	<div id='fb-root'></div>
					<script type='text/javascript'>
						window.fbAsyncInit = function()
						{
							FB.init({appId: null, status: true, cookie: true, xfbml: true});
						};
						(function()
						{
							var e = document.createElement('script'); e.async = true;
							e.src = document.location.protocol + '//connect.facebook.net/zh_TW/all.js';
							document.getElementById('fb-root').appendChild(e);
						}());
					</script>	
						<item>
		<title>MyDNS &amp; DNSMasq</title>
		<link>http://phpsrv.nutn.edu.tw/~silent/archives/52</link>
		<comments>http://phpsrv.nutn.edu.tw/~silent/archives/52#comments</comments>
		<pubDate>Wed, 03 Dec 2008 06:35:45 +0000</pubDate>
		<dc:creator>水手</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[DNS]]></category>
		<category><![CDATA[Mysql]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://phpsrv.nutn.edu.tw/~silent/?p=52</guid>
		<description><![CDATA[昨天凌晨學校的DNS出了問題， 廠商少改了一些設定，結果上班的時候才發現有些server無法解析&#8230;. 緊急改回設定後，弄到中午結果時好時壞， 這時只好趕快架一台dns起來替換 我使用的是Mydns 搭配MyDNSConfig與DNSMasq 以下是安裝設定 http://www.howtoforge.com/mydns_mydnsconfig_dnsmasp_on_ubuntu_edgy 要注意的是， 因為Ubuntu8.10還未把mydns納入apt， 所以要用apt安裝的話，要先加入sources.list 有些地方要注意，等等再來補資料， 先忙&#8230;.]]></description>
			<content:encoded><![CDATA[<p>昨天凌晨學校的DNS出了問題，<br />
廠商少改了一些設定，結果上班的時候才發現有些server無法解析&#8230;.</p>
<p>緊急改回設定後，弄到中午結果時好時壞，<br />
這時只好趕快架一台dns起來替換<br />
<span id="more-52"></span><br />
我使用的是Mydns<br />
搭配MyDNSConfig與DNSMasq</p>
<p>以下是安裝設定<br />
<a href="http://www.howtoforge.com/mydns_mydnsconfig_dnsmasp_on_ubuntu_edgy">http://www.howtoforge.com/mydns_mydnsconfig_dnsmasp_on_ubuntu_edgy</a></p>
<p>要注意的是，<br />
因為Ubuntu8.10還未把mydns納入apt，<br />
所以要用apt安裝的話，要先加入sources.list</p>
<pre class="brush: plain; title: ; notranslate">
deb http://security.ubuntu.com/ubuntu gutsy universe
</pre>
<p>有些地方要注意，等等再來補資料，<br />
先忙&#8230;.</p>
<div class='wpfblike' style='height: 40px;'><fb:like href='http://phpsrv.nutn.edu.tw/~silent/archives/52' layout='button_count' show_faces='true' width='400' action='like' colorscheme='light' send='true' /></div>]]></content:encoded>
			<wfw:commentRss>http://phpsrv.nutn.edu.tw/~silent/archives/52/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mysql編碼備忘 &#8211; Stored Procedure 錯誤訊息</title>
		<link>http://phpsrv.nutn.edu.tw/~silent/archives/41</link>
		<comments>http://phpsrv.nutn.edu.tw/~silent/archives/41#comments</comments>
		<pubDate>Thu, 12 Jun 2008 01:43:38 +0000</pubDate>
		<dc:creator>水手</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Mysql]]></category>

		<guid isPermaLink="false">http://phpsrv.nutn.edu.tw/~silent/?p=41</guid>
		<description><![CDATA[之前常發現phpmyadmin裡面，mysql有一項編碼資訊 這兩項會不同，因為我是用utf8的編碼來做， 但Mysql 4.1之後又多了collation(連線校對) 而編碼裡又有區分utf8_general_ci , utf8_unicode_ci 原本程式運作起來沒什麼問題，但是在call之前的Stored Procedure 卻發生 Illegal mix of collations (utf8_unicode_ci,IMPLICIT) and (utf8_general_ci,IMPLICIT) for operation &#8216;=&#8217; 查詢google&#8230;.上面都是在程式裡加入 但是我加上去卻還是一樣， 後來直接在my.cnf裡面加上 Stored Procedure 就恢復正常了&#8230;..]]></description>
			<content:encoded><![CDATA[<p>之前常發現phpmyadmin裡面，mysql有一項編碼資訊</p>
<pre class="brush: php; title: ; notranslate">
collation connection
collation database
</pre>
<p><span id="more-41"></span><br />
這兩項會不同，因為我是用utf8的編碼來做，<br />
但Mysql 4.1之後又多了collation(連線校對)<br />
而編碼裡又有區分utf8_general_ci , utf8_unicode_ci</p>
<p>原本程式運作起來沒什麼問題，但是在call之前的Stored Procedure 卻發生</p>
<blockquote><p>
Illegal mix of collations (utf8_unicode_ci,IMPLICIT) and (utf8_general_ci,IMPLICIT) for operation &#8216;=&#8217;
</p></blockquote>
<p>查詢google&#8230;.上面都是在程式裡加入</p>
<pre class="brush: php; title: ; notranslate">
SET NAMES utf8
</pre>
<p>但是我加上去卻還是一樣，<br />
後來直接在my.cnf裡面加上</p>
<pre class="brush: bash; title: ; notranslate">
default-collation = utf8_unicode_ci
</pre>
<p>Stored Procedure 就恢復正常了&#8230;..</p>
<div class='wpfblike' style='height: 40px;'><fb:like href='http://phpsrv.nutn.edu.tw/~silent/archives/41' layout='button_count' show_faces='true' width='400' action='like' colorscheme='light' send='true' /></div>]]></content:encoded>
			<wfw:commentRss>http://phpsrv.nutn.edu.tw/~silent/archives/41/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

