<?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/"
		xmlns:xhtml="http://www.w3.org/1999/xhtml"
>

<channel>
	<title>きぬろぐ</title>
	<atom:link href="http://www.kinusati.net/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.kinusati.net</link>
	<description>だめでつれづれな日記</description>
	<lastBuildDate>Tue, 20 Mar 2012 02:25:56 +0000</lastBuildDate>
	<language>ja</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://www.kinusati.net/feed/" />
		<item>
		<title>Windowsでファイル中の文字を検索する方法</title>
		<link>http://www.kinusati.net/2012/03/20/windows%e3%81%a7%e3%83%95%e3%82%a1%e3%82%a4%e3%83%ab%e4%b8%ad%e3%81%ae%e6%96%87%e5%ad%97%e3%82%92%e6%a4%9c%e7%b4%a2%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95/</link>
		<comments>http://www.kinusati.net/2012/03/20/windows%e3%81%a7%e3%83%95%e3%82%a1%e3%82%a4%e3%83%ab%e4%b8%ad%e3%81%ae%e6%96%87%e5%ad%97%e3%82%92%e6%a4%9c%e7%b4%a2%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95/#comments</comments>
		<pubDate>Tue, 20 Mar 2012 02:25:56 +0000</pubDate>
		<dc:creator>kinusati</dc:creator>
				<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.kinusati.net/?p=1121</guid>
		<description><![CDATA[私はLinux/Solarisを使ったシステム構築や開発を行うことが多いのですが、普段使っているクライアントはWindowsです。Windowsでgrepみたいなコマンドないのかなと思っていたら、ありましたね。「find [...]]]></description>
			<content:encoded><![CDATA[<p>私はLinux/Solarisを使ったシステム構築や開発を行うことが多いのですが、普段使っているクライアントはWindowsです。Windowsでgrepみたいなコマンドないのかなと思っていたら、ありましたね。「findstr」コマンド。</p>
<p>正規表現も使えるし。</p>
<pre>
&gt; findstr -?
ファイルから文字列を検索します。

FINDSTR [/B] [/E] [/L] [/R] [/S] [/I] [/X] [/V] [/N] [/M] [/O] [/P]
        [/F:ファイル] [/C:文字列] [/G:ファイル] [/D:ディレクトリ一覧]
        [/A:色属性] [/OFF[LINE]] 文字列 [[ドライブ:][パス]ファイル名[ ...]]

  /B           行の先頭にあるパターンを検索します。
  /E           行の末尾にあるパターンを検索します。
  /L           検索文字列をリテラルとして使用します。
  /R           検索文字列を正規表現として使用します。
  /S           現在のディレクトリとすべてのサブディレクトリから一致する
               ファイルを検索します。
  /I           検索するときに大文字と小文字を区別しません。
  /X           完全に一致する行を出力します。
  /V           一致しない行のみを出力します。
  /N           一致する各行の前に行番号を出力します。
  /M           ファイルに一致する行があるときに、ファイル名のみを出力します。
  /O           一致する各行の前に文字オフセットを出力します。
  /P           印刷不可能な文字を含むファイルをスキップします。
  /OFF[LINE]   オフライン属性が設定されたファイルをスキップしません。
  /A:属性      2 桁の 16 進数で色属性を指定します。&quot;color /?&quot; を参照してくだ
               さい。
  /F:ファイル  指定したファイルからファイル一覧を読み取ります (/ を指定する
               とコンソール)。
  /C:文字列    指定された文字列をリテラル検索文字列として使用します。
  /G:ファイル  指定されたファイルから検索文字列を取得します (/ を指定する
               とコンソール)。
  /D:ディレクトリ
               セミコロンで区切られた検索されるディレクトリ文字列テキストの
               一覧を検索します。
  [ドライブ:][パス]ファイル名
               検索するファイルを指定します。

複数の文字列を検索する場合には、引数 /C を使わず、各文字列をスペースで区切り
ます。
たとえば、FINDSTR &quot;hello there&quot; x.y と指定した場合は、ファイル x.y で &quot;hello&quot;
または &quot;there&quot; が検索されます。
これに対して、FINDSTR /C:&quot;hello there&quot; x.y と指定した場合はファイル x.y で
&quot;hello there&quot; が検索されます。

正規表現クイック リファレンス:
  .            ワイルドカード: 任意の文字
  *            繰り返し: ゼロ個以上の直前の文字またはクラス
  ^            行位置: 行頭
  $            行位置: 行末
  [class]      文字クラス: セットの任意の 1 文字
  [^class]     逆クラス: セット以外の任意の 1 文字
  [x-y]        範囲: 指定した範囲の任意の文字
  \x           エスケープ: メタ文字 x のリテラル使用
  \&lt;xyz        単語位置: 単語の先頭
  xyz\&gt;        単語位置: 単語の終わり

FINDSTR の詳細な正規表現に関しては、オンライン ヘルプのコマンド リファレンスを
参照してください。
</pre>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.kinusati.net/2012/03/20/windows%e3%81%a7%e3%83%95%e3%82%a1%e3%82%a4%e3%83%ab%e4%b8%ad%e3%81%ae%e6%96%87%e5%ad%97%e3%82%92%e6%a4%9c%e7%b4%a2%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://www.kinusati.net/2012/03/20/windows%e3%81%a7%e3%83%95%e3%82%a1%e3%82%a4%e3%83%ab%e4%b8%ad%e3%81%ae%e6%96%87%e5%ad%97%e3%82%92%e6%a4%9c%e7%b4%a2%e3%81%99%e3%82%8b%e6%96%b9%e6%b3%95/" />
	</item>
		<item>
		<title>tarコマンドの&#8211;newer-mtimeオプション</title>
		<link>http://www.kinusati.net/2012/01/16/tar%e3%82%b3%e3%83%9e%e3%83%b3%e3%83%89%e3%81%ae-newer-mtime%e3%82%aa%e3%83%97%e3%82%b7%e3%83%a7%e3%83%b3/</link>
		<comments>http://www.kinusati.net/2012/01/16/tar%e3%82%b3%e3%83%9e%e3%83%b3%e3%83%89%e3%81%ae-newer-mtime%e3%82%aa%e3%83%97%e3%82%b7%e3%83%a7%e3%83%b3/#comments</comments>
		<pubDate>Sun, 15 Jan 2012 23:42:13 +0000</pubDate>
		<dc:creator>kinusati</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.kinusati.net/?p=1117</guid>
		<description><![CDATA[CentOS5に付属しているtarコマンド(GNU tar)が高機能で、ある日付以後に修正が入ったファイルだけをバックアップするというオプションがついています。&#8211;newer-mtimeオプションというやつです [...]]]></description>
			<content:encoded><![CDATA[<p>CentOS5に付属しているtarコマンド(GNU tar)が高機能で、ある日付以後に修正が入ったファイルだけをバックアップするというオプションがついています。&#8211;newer-mtimeオプションというやつです。</p>
<p>以下、man tarを抜粋</p>
<pre>
       --newer-mtime DATE
              like --newer, but with a DATE
</pre>
<p>例えばこのコマンドを使って、2012/01/01以後に出力されたログファイルだけを対象にバックアップを取得するには以下を実行すればいいわけです。</p>
<pre>
$ tar cvfz /var/tmp/backup.tar.gz --newer-mtime 2012-01-01 /var/log
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.kinusati.net/2012/01/16/tar%e3%82%b3%e3%83%9e%e3%83%b3%e3%83%89%e3%81%ae-newer-mtime%e3%82%aa%e3%83%97%e3%82%b7%e3%83%a7%e3%83%b3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://www.kinusati.net/2012/01/16/tar%e3%82%b3%e3%83%9e%e3%83%b3%e3%83%89%e3%81%ae-newer-mtime%e3%82%aa%e3%83%97%e3%82%b7%e3%83%a7%e3%83%b3/" />
	</item>
		<item>
		<title>Windows(cygwin)でのrsync</title>
		<link>http://www.kinusati.net/2012/01/16/windowscygwin%e3%81%a7%e3%81%aersync/</link>
		<comments>http://www.kinusati.net/2012/01/16/windowscygwin%e3%81%a7%e3%81%aersync/#comments</comments>
		<pubDate>Sun, 15 Jan 2012 23:37:31 +0000</pubDate>
		<dc:creator>kinusati</dc:creator>
				<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://www.kinusati.net/?p=1114</guid>
		<description><![CDATA[Windows 7からFreeBSDに対して差分バックアップを取得したかったので、rsync(cygwin)を導入しました。導入は至ってかんたんで、cygwinのsetup.exeから導入しました。 ただ普通にバックアッ [...]]]></description>
			<content:encoded><![CDATA[<p>Windows 7からFreeBSDに対して差分バックアップを取得したかったので、rsync(cygwin)を導入しました。導入は至ってかんたんで、cygwinのsetup.exeから導入しました。</p>
<p>ただ普通にバックアップしようとすると、以下のエラーが出て困りました。。</p>
<pre>
$ rsync.exe -avz --delete  /cygdrive/d/Java/ www.example.com:/backup/Java
sending incremental file list
created directory /backup/Java
./
rsync: failed to modify permissions on "/backup/Java.": Permission denied (13)
rsync: opendir "/backup/Java." failed: Permission denied (13)
apache-maven-3.0.3/
</pre>
<p>cygwin上ではWindows上のパーティション(Cドライブとか)は/cygdrive/c配下にマウントされますが、cygdrive上のパーミッションが以下のように見えていて、ディレクトリが権限不足になることが原因のようですね。ま、環境によると思います。</p>
<pre>
d---------+ 1 ????????       ????????             0 Mar 21  2011 Program Files
d---------+ 1 ????????       ????????             0 Sep 24 15:44 tmp
d---------+ 1 ????????       ????????             0 Oct 16 15:34 Java
d---------+ 1 ????????       ????????             0 Dec 18 22:00 Program Files (x86)
</pre>
<p>今回は以下chmodオプションで回避しましたが、少々ださいな・・・</p>
<pre>
rsync.exe -avz --delete --chmod=u+rwx /cygdrive/d/Java/ www.example.com:/backup/Java
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.kinusati.net/2012/01/16/windowscygwin%e3%81%a7%e3%81%aersync/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://www.kinusati.net/2012/01/16/windowscygwin%e3%81%a7%e3%81%aersync/" />
	</item>
		<item>
		<title>CakePHPでのキャッシュコントロール</title>
		<link>http://www.kinusati.net/2012/01/04/cakephp%e3%81%a7%e3%81%ae%e3%82%ad%e3%83%a3%e3%83%83%e3%82%b7%e3%83%a5%e3%82%b3%e3%83%b3%e3%83%88%e3%83%ad%e3%83%bc%e3%83%ab/</link>
		<comments>http://www.kinusati.net/2012/01/04/cakephp%e3%81%a7%e3%81%ae%e3%82%ad%e3%83%a3%e3%83%83%e3%82%b7%e3%83%a5%e3%82%b3%e3%83%b3%e3%83%88%e3%83%ad%e3%83%bc%e3%83%ab/#comments</comments>
		<pubDate>Wed, 04 Jan 2012 09:18:57 +0000</pubDate>
		<dc:creator>kinusati</dc:creator>
				<category><![CDATA[PHP]]></category>

		<guid isPermaLink="false">http://www.kinusati.net/?p=1107</guid>
		<description><![CDATA[Webアプリケーションではキャッシュさせない実装が割と多いと思います。 CakePHP 1.3の場合、boforeFilter()に$this-&#62;disableCache()を追加するだけでキャッシュを無効化できる [...]]]></description>
			<content:encoded><![CDATA[<p>Webアプリケーションではキャッシュさせない実装が割と多いと思います。</p>
<p>CakePHP 1.3の場合、boforeFilter()に$this-&gt;disableCache()を追加するだけでキャッシュを無効化できるから楽ちんですね。ちなみにソースは以下。cake/libs/controller/controller.phpに書いてます。</p>
<pre>
function disableCache() {
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");
}
</pre>
<p>Cache-Control: post-check/pre-checkの意味は<a href="http://msdn.microsoft.com/en-us/library/ms533020(v=vs.85).aspx">MSDN</a>参照。</p>
<p>Cache-Control: no-store, no-cache, must-revalidate/Pragma: no-cacheは<a href="http://www.ipa.go.jp/security/awareness/vendor/programmingv2/contents/405.html">IPA</a>参照。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.kinusati.net/2012/01/04/cakephp%e3%81%a7%e3%81%ae%e3%82%ad%e3%83%a3%e3%83%83%e3%82%b7%e3%83%a5%e3%82%b3%e3%83%b3%e3%83%88%e3%83%ad%e3%83%bc%e3%83%ab/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://www.kinusati.net/2012/01/04/cakephp%e3%81%a7%e3%81%ae%e3%82%ad%e3%83%a3%e3%83%83%e3%82%b7%e3%83%a5%e3%82%b3%e3%83%b3%e3%83%88%e3%83%ad%e3%83%bc%e3%83%ab/" />
	</item>
		<item>
		<title>FreeBSD 9.0 RELEASEがでるぞー</title>
		<link>http://www.kinusati.net/2012/01/03/freebsd-9-0-release%e3%81%8c%e3%81%a7%e3%82%8b%e3%81%9e%e3%83%bc/</link>
		<comments>http://www.kinusati.net/2012/01/03/freebsd-9-0-release%e3%81%8c%e3%81%a7%e3%82%8b%e3%81%9e%e3%83%bc/#comments</comments>
		<pubDate>Tue, 03 Jan 2012 09:03:25 +0000</pubDate>
		<dc:creator>kinusati</dc:creator>
				<category><![CDATA[freebsd]]></category>

		<guid isPermaLink="false">http://www.kinusati.net/?p=1101</guid>
		<description><![CDATA[FreeBSD 9.0 RELEASEが 2012/01/06付けで出るようですね。 タグをRELENG_9_0_0_RELEASEでcsupしたらダウンロードできたし、/usr/src/UPDATINGファイルには以下 [...]]]></description>
			<content:encoded><![CDATA[<p>FreeBSD 9.0 RELEASEが 2012/01/06付けで出るようですね。</p>
<p>タグをRELENG_9_0_0_RELEASEでcsupしたらダウンロードできたし、/usr/src/UPDATINGファイルには以下の記述が。</p>
<pre>
20120106:
        9.0-RELEASE.
</pre>
<p>ただいま、BUILD中。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.kinusati.net/2012/01/03/freebsd-9-0-release%e3%81%8c%e3%81%a7%e3%82%8b%e3%81%9e%e3%83%bc/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://www.kinusati.net/2012/01/03/freebsd-9-0-release%e3%81%8c%e3%81%a7%e3%82%8b%e3%81%9e%e3%83%bc/" />
	</item>
		<item>
		<title>FreeBSDのCVSタグ</title>
		<link>http://www.kinusati.net/2011/12/11/freebsd%e3%81%aecvs%e3%82%bf%e3%82%b0/</link>
		<comments>http://www.kinusati.net/2011/12/11/freebsd%e3%81%aecvs%e3%82%bf%e3%82%b0/#comments</comments>
		<pubDate>Sun, 11 Dec 2011 13:32:28 +0000</pubDate>
		<dc:creator>kinusati</dc:creator>
				<category><![CDATA[freebsd]]></category>

		<guid isPermaLink="false">http://www.kinusati.net/?p=1098</guid>
		<description><![CDATA[このホストはFreeBSD-9.0をcsup経由でbuildして使っていますが、freebsd-updateでRELEASE-9.0等にアップデートしようとすると以下のエラーが出たので。。。 # freebsd-upda [...]]]></description>
			<content:encoded><![CDATA[<p>このホストはFreeBSD-9.0をcsup経由でbuildして使っていますが、freebsd-updateでRELEASE-9.0等にアップデートしようとすると以下のエラーが出たので。。。</p>
<pre>
# freebsd-update fetch
Looking up update.FreeBSD.org mirrors... 4 mirrors found.
Fetching public key from update4.FreeBSD.org... failed.
Fetching public key from update5.FreeBSD.org... failed.
Fetching public key from update3.FreeBSD.org... failed.
Fetching public key from update2.FreeBSD.org... failed.
No mirrors remaining, giving up.
</pre>
<p>freebsd-updateはRELEASE間のアップデートには対応しているけどstable -> releaseって対応していないんですね。</p>
<p>なので、csupでreleaseに対応するstableを引っ張ってくる方法を探していました。</p>
<p>FreeBSDのページに<a href="http://www.freebsd.org/doc/handbook/cvs-tags.html">CVS tag</a>というところがあり、ばっちり書いていますね。参考になりました。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.kinusati.net/2011/12/11/freebsd%e3%81%aecvs%e3%82%bf%e3%82%b0/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://www.kinusati.net/2011/12/11/freebsd%e3%81%aecvs%e3%82%bf%e3%82%b0/" />
	</item>
		<item>
		<title>FreeBSD 9.0(PRERELEASE) on ZFS root</title>
		<link>http://www.kinusati.net/2011/11/20/freebsd-9-0prerelease-on-zfs/</link>
		<comments>http://www.kinusati.net/2011/11/20/freebsd-9-0prerelease-on-zfs/#comments</comments>
		<pubDate>Sun, 20 Nov 2011 14:00:38 +0000</pubDate>
		<dc:creator>kinusati</dc:creator>
				<category><![CDATA[freebsd]]></category>

		<guid isPermaLink="false">http://www.kinusati.net/?p=1091</guid>
		<description><![CDATA[FreeBSD 9.0 (PRERELEASE) on ZFS rootにチャレンジしてみました。安定して動くのでおすすめですね。早くインストーラがZFSインストールに対応してくれればいいのにな。 http://wiki [...]]]></description>
			<content:encoded><![CDATA[<p>FreeBSD 9.0 (PRERELEASE) on ZFS rootにチャレンジしてみました。安定して動くのでおすすめですね。早くインストーラがZFSインストールに対応してくれればいいのにな。</p>
<p><a href="http://wiki.kinusati.net/index.php/FreeBSD:FreeBSD9.0(amd64)_on_ZFS">http://wiki.kinusati.net/index.php/FreeBSD:FreeBSD9.0(amd64)_on_ZFS</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.kinusati.net/2011/11/20/freebsd-9-0prerelease-on-zfs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://www.kinusati.net/2011/11/20/freebsd-9-0prerelease-on-zfs/" />
	</item>
		<item>
		<title>VMware Playerのサービス化</title>
		<link>http://www.kinusati.net/2011/10/03/vmware-player%e3%81%ae%e3%82%b5%e3%83%bc%e3%83%93%e3%82%b9%e5%8c%96/</link>
		<comments>http://www.kinusati.net/2011/10/03/vmware-player%e3%81%ae%e3%82%b5%e3%83%bc%e3%83%93%e3%82%b9%e5%8c%96/#comments</comments>
		<pubDate>Mon, 03 Oct 2011 09:14:03 +0000</pubDate>
		<dc:creator>kinusati</dc:creator>
				<category><![CDATA[VMware]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[未分類]]></category>

		<guid isPermaLink="false">http://www.kinusati.net/?p=1078</guid>
		<description><![CDATA[sexeを使うと簡単にVMware Playerをサービス化できます。 1. sexeをインストール 2. sexeを起動してサービスを登録。起動時オプションにVMXファイルのパスをフルパスで指定する必要があります。登録 [...]]]></description>
			<content:encoded><![CDATA[<p>sexeを使うと簡単にVMware Playerをサービス化できます。</p>
<p>1. <a href="http://www.nanshiki.co.jp/software/index.html?sexe">sexe</a>をインストール</p>
<p>2. sexeを起動してサービスを登録。起動時オプションにVMXファイルのパスをフルパスで指定する必要があります。登録が終わったらOKボタンを教えてください。</p>
<p><a href="http://www.kinusati.net/wp-content/uploads/2011/10/WS0000001.png"><img src="http://www.kinusati.net/wp-content/uploads/2011/10/WS0000001.png" alt="" title="WS000000" class="alignnone size-full wp-image-1082" /></a></p>
<p>3. サービスの画面から、アカウントでログオンする設定を追加する。</p>
<p><a href="http://www.kinusati.net/wp-content/uploads/2011/10/WS000001.png"><img src="http://www.kinusati.net/wp-content/uploads/2011/10/WS000001.png" alt="" title="WS000001" class="alignnone size-full wp-image-1083" /></a></p>
<p>これで無事登録完了です。自動起動はすてきです。</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.kinusati.net/2011/10/03/vmware-player%e3%81%ae%e3%82%b5%e3%83%bc%e3%83%93%e3%82%b9%e5%8c%96/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://www.kinusati.net/2011/10/03/vmware-player%e3%81%ae%e3%82%b5%e3%83%bc%e3%83%93%e3%82%b9%e5%8c%96/" />
	</item>
		<item>
		<title>MySQL4.0以前に作成したアカウントがMySQL5.5で利用できない</title>
		<link>http://www.kinusati.net/2011/10/03/mysql4-0%e4%bb%a5%e5%89%8d%e3%81%ab%e4%bd%9c%e6%88%90%e3%81%97%e3%81%9f%e3%82%a2%e3%82%ab%e3%82%a6%e3%83%b3%e3%83%88%e3%81%8cmysql5-5%e3%81%a7%e5%88%a9%e7%94%a8%e3%81%a7%e3%81%8d%e3%81%aa%e3%81%84/</link>
		<comments>http://www.kinusati.net/2011/10/03/mysql4-0%e4%bb%a5%e5%89%8d%e3%81%ab%e4%bd%9c%e6%88%90%e3%81%97%e3%81%9f%e3%82%a2%e3%82%ab%e3%82%a6%e3%83%b3%e3%83%88%e3%81%8cmysql5-5%e3%81%a7%e5%88%a9%e7%94%a8%e3%81%a7%e3%81%8d%e3%81%aa%e3%81%84/#comments</comments>
		<pubDate>Mon, 03 Oct 2011 08:28:57 +0000</pubDate>
		<dc:creator>kinusati</dc:creator>
				<category><![CDATA[MySQL]]></category>

		<guid isPermaLink="false">http://www.kinusati.net/?p=1075</guid>
		<description><![CDATA[MySQLを5.5にバージョンアップしたら、PHP経由でデータベースに接続できないという不具合にぶち当たりました。 よくよく調べてみると、MySQL4.0以前に作成したアカウントだけ接続できない模様。 http://de [...]]]></description>
			<content:encoded><![CDATA[<p>MySQLを5.5にバージョンアップしたら、PHP経由でデータベースに接続できないという不具合にぶち当たりました。</p>
<p>よくよく調べてみると、MySQL4.0以前に作成したアカウントだけ接続できない模様。</p>
<p><a href=http://dev.mysql.com/doc/refman/5.5/en/old-client.html>http://dev.mysql.com/doc/refman/5.5/en/old-client.html</a></p>
<pre>
C.5.2.4. Client does not support authentication protocol
MySQL 5.5 uses an authentication protocol based on a password hashing algorithm that is incompatible with that used by older (pre-4.1) clients. If you upgrade the server from 4.0, attempts to connect to it with an older client may fail with the following message:
...
</pre>
<p>とりあえず平文パスワードはわかったので、パスワードを再設定して事なきを得ました。パスワードをリセットする方法もあると公式ページで書いているので間違いないでしょう。</p>
<pre>
Reset the password to pre-4.1 style for each user that needs to use a pre-4.1 client program. This can be done using the SET PASSWORD statement and the OLD_PASSWORD() function:

mysql> SET PASSWORD FOR
    -> 'some_user'@'some_host' = OLD_PASSWORD('newpwd');
Alternatively, use UPDATE and FLUSH PRIVILEGES:

mysql> UPDATE mysql.user SET Password = OLD_PASSWORD('newpwd')
    -> WHERE Host = 'some_host' AND User = 'some_user';
mysql> FLUSH PRIVILEGES;
Substitute the password you want to use for “newpwd” in the preceding examples. MySQL cannot tell you what the original password was, so you'll need to pick a new one.
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.kinusati.net/2011/10/03/mysql4-0%e4%bb%a5%e5%89%8d%e3%81%ab%e4%bd%9c%e6%88%90%e3%81%97%e3%81%9f%e3%82%a2%e3%82%ab%e3%82%a6%e3%83%b3%e3%83%88%e3%81%8cmysql5-5%e3%81%a7%e5%88%a9%e7%94%a8%e3%81%a7%e3%81%8d%e3%81%aa%e3%81%84/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://www.kinusati.net/2011/10/03/mysql4-0%e4%bb%a5%e5%89%8d%e3%81%ab%e4%bd%9c%e6%88%90%e3%81%97%e3%81%9f%e3%82%a2%e3%82%ab%e3%82%a6%e3%83%b3%e3%83%88%e3%81%8cmysql5-5%e3%81%a7%e5%88%a9%e7%94%a8%e3%81%a7%e3%81%8d%e3%81%aa%e3%81%84/" />
	</item>
		<item>
		<title>Linuxのcron</title>
		<link>http://www.kinusati.net/2011/10/03/linux%e3%81%aecron/</link>
		<comments>http://www.kinusati.net/2011/10/03/linux%e3%81%aecron/#comments</comments>
		<pubDate>Mon, 03 Oct 2011 08:22:07 +0000</pubDate>
		<dc:creator>kinusati</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.kinusati.net/?p=1072</guid>
		<description><![CDATA[Solarisと違って、Linuxのcronで「%」(パーセント)を利用するためにはエスケープしないとダメなんですね。はまりました。 $ man 5 crontab ... 「 第 6」フィールド (行の残りの部分) に [...]]]></description>
			<content:encoded><![CDATA[<p>Solarisと違って、Linuxのcronで「%」(パーセント)を利用するためにはエスケープしないとダメなんですね。はまりました。</p>
<pre>
$ man 5 crontab
...
「 第 6」フィールド (行の残りの部分) には実行されるコマンドを指定する。その行のコマンド部 (改行文字ま
たは % 文字まで) が /bin/sh (またはその crontab ファイルの SHELL 環境変数で指定されたシェル) によって
実 行される。コマンド中にパーセント記号 (%) がバックスラッシュ (\) によってエスケープされずに置かれて
いると、改行文字に置き換えられ、最初に現れた % 以降の全てのデータは標準入力としてコマンドに送られる。
</pre>
<p>覚えておきましょう。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.kinusati.net/2011/10/03/linux%e3%81%aecron/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://www.kinusati.net/2011/10/03/linux%e3%81%aecron/" />
	</item>
	</channel>
</rss>

