<?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>Sooey &#187; mysql</title>
	<atom:link href="http://old-journal.sooey.com/tag/mysql/feed/" rel="self" type="application/rss+xml" />
	<link>http://old-journal.sooey.com</link>
	<description></description>
	<lastBuildDate>Fri, 04 Dec 2009 08:44:05 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>MacPortsのmysql5でreadlineが組み込まれない</title>
		<link>http://old-journal.sooey.com/2008/05/26/736/</link>
		<comments>http://old-journal.sooey.com/2008/05/26/736/#comments</comments>
		<pubDate>Mon, 26 May 2008 07:16:36 +0000</pubDate>
		<dc:creator>juno</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[macports]]></category>
		<category><![CDATA[mysql]]></category>

		<guid isPermaLink="false">http://www.sooey.com/journal/?p=736</guid>
		<description><![CDATA[MacPortsのmysql5パッケージに含まれるmysql5コマンドが、readlineの組み込まれていない状態でビルドされてしまい不便だったので、強引にPortfileにvariantを追加してビルドしなおした。

--- /opt/local/var/macports/sources/rsync.macports.org/release/ports/databases/mysql5/Portfile.orig     2008-05-05 13:56:36.000000000 +0900
+++ /opt/local/var/macports/sources/rsync.macports.org/release/ports/databases/mysql5/Portfile  2008-05-26 15:53:07.000000000 +0900
@@ -68,6 +68,12 @@
     startupitem.stop    &#34;$&#123;prefix&#125;/share/$&#123;mysql&#125;/mysql/mysql.server stop&#34;
 &#125;
&#160;
+variant readline &#123;
+    # enable readline
+    depends_lib-append  port:readline
+    configure.args-append  --with-readline
+&#125;
+
 pre-destroot &#123;
     # [...]
]]></description>
			<content:encoded><![CDATA[<p>MacPortsのmysql5パッケージに含まれるmysql5コマンドが、readlineの組み込まれていない状態でビルドされてしまい不便だったので、強引にPortfileにvariantを追加してビルドしなおした。</p>

<p><pre class="diff"><span class="re3">--- /opt/local/var/macports/sources/rsync.macports.org/release/ports/databases/mysql5/Portfile.orig     <span class="nu0">2008</span><span class="nu0">-05</span><span class="nu0">-05</span> <span class="nu0">13</span>:<span class="nu0">56</span>:<span class="nu0">36.000000000</span> <span class="nu0">+0900</span></span>
<span class="re4">+++ /opt/local/var/macports/sources/rsync.macports.org/release/ports/databases/mysql5/Portfile  <span class="nu0">2008</span><span class="nu0">-05</span><span class="nu0">-26</span> <span class="nu0">15</span>:<span class="nu0">53</span>:<span class="nu0">07.000000000</span> <span class="nu0">+0900</span></span>
<span class="re6">@@ <span class="nu0">-68</span>,<span class="nu0">6</span> <span class="nu0">+68</span>,<span class="nu0">12</span> @@</span>
     startupitem.stop    &quot;$<span class="br0">&#123;</span>prefix<span class="br0">&#125;</span>/share/$<span class="br0">&#123;</span>mysql<span class="br0">&#125;</span>/mysql/mysql.server stop&quot;
 <span class="br0">&#125;</span>
&nbsp;
<span class="re8">+variant readline <span class="br0">&#123;</span></span>
<span class="re8">+    # enable readline</span>
<span class="re8">+    depends_lib-append  port:readline</span>
<span class="re8">+    configure.args-append  --with-readline</span>
<span class="re8">+<span class="br0">&#125;</span></span>
<span class="re8">+</span>
 pre-destroot <span class="br0">&#123;</span>
     # Some directories we must have in all cases
     xinstall -m <span class="nu0">755</span> -d $<span class="br0">&#123;</span>destroot<span class="br0">&#125;</span>$<span class="br0">&#123;</span>sysconfdir<span class="br0">&#125;</span></pre></p>

<p>インストールは以下のように。</p>

<pre><code>$ sudo port install mysql5 +server +readline
</code></pre>

<p>今回はreadlineを使ったけど、libeditを使う場合は<a href="http://d.hatena.ne.jp/mir/20080509/p1">editlineマルチバイト不具合の修正 &#8211; mir the affianced</a>を参考に。</p>
]]></content:encoded>
			<wfw:commentRss>http://old-journal.sooey.com/2008/05/26/736/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MySQL on Mac OS Xおぼえがき</title>
		<link>http://old-journal.sooey.com/2007/08/20/655/</link>
		<comments>http://old-journal.sooey.com/2007/08/20/655/#comments</comments>
		<pubDate>Mon, 20 Aug 2007 06:12:33 +0000</pubDate>
		<dc:creator>juno</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[mysql]]></category>

		<guid isPermaLink="false">http://www.sooey.com/journal/2007/08/20/655/</guid>
		<description><![CDATA[MySQL ABが配布しているMySQLのMac OS X用パッケージに関するメモ。いつも忘れてしまうので。

mysql システムアカウントが必要(Mac OS X 10.2以降は標準で存在する)
インストーラがやること

/usr/local/mysql-VERSION 以下へのMySQLインストール
/usr/local/mysql からインストールディレクトリへのシンボリックリンク作成
/usr/local/mysql が存在する場合に /usr/local/mysql.bak にリネーム
mysql_install_db を実行して mysql テーブルに権限情報の作成

パスなど

各種コマンドは /usr/local/mysql/bin 以下にある
ソケットファイルは `/tmp/mysql.sock&#8217; に作成される

サーバプロセスの自動起動

システム起動時にMySQLを起動させたい場合はMySQLStartupItem.pkgをインストールする
MySQLStartupItem.pkgは一度インストールすれば、MySQLをバージョンアップしてもそのまま使える
起動スクリプトは /Library/StartupItems/MySQLCOM にインストールされる(MySQL 4.1.2以前はMySQLという名前)
インストーラは /etc/hostconfig に MYSQLCOM=-YES- を追加する
自動起動を無効にしたい場合は MYSQLCOM=-NO- に書き換える

サーバプロセスの手動起動

起動スクリプトをインストールした場合

$ sudo /Library/StartupItems/MySQLCOM/MySQLCOM start

起動スクリプトをインストールしていない場合

$ cd /usr/local/mysql
$ sudo ./bin/mysqld_safe
$ bg

最初に権限テーブルに含まれているアカウントにはパスワードが設定されていないので、サーバ起動後にパスワードを設定すること
PATH環境変数に /usr/local/mysql/bin/ を追加する
アップグレード

MySQL のアップグレード時には古いバージョンのディレクトリはそのまま完全に残る
既存のデータベースを移行したい場合は、古いデータディレクトリを新しいデータディレクトリにコピーする
その際、新旧いずれのサーバプロセスも動いていないことを確認すること
以降が上手くいったら古いバージョンのディレクトリは削除してもよい
古いバージョンのレシピファイル /Library/Receipts/mysql-VERSION.pkg も削除する
]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.mysql.com/">MySQL AB</a>が配布しているMySQLのMac OS X用パッケージに関するメモ。いつも忘れてしまうので。</p>

<ul>
<li><code>mysql</code> システムアカウントが必要(Mac OS X 10.2以降は標準で存在する)</li>
<li>インストーラがやること

<ul>
<li><code>/usr/local/mysql-VERSION</code> 以下へのMySQLインストール</li>
<li><code>/usr/local/mysql</code> からインストールディレクトリへのシンボリックリンク作成</li>
<li><code>/usr/local/mysql</code> が存在する場合に <code>/usr/local/mysql.bak</code> にリネーム</li>
<li><code>mysql_install_db</code> を実行して <code>mysql</code> テーブルに権限情報の作成</li>
</ul></li>
<li>パスなど

<ul>
<li>各種コマンドは <code>/usr/local/mysql/bin</code> 以下にある</li>
<li>ソケットファイルは `/tmp/mysql.sock&#8217; に作成される</li>
</ul></li>
<li>サーバプロセスの自動起動

<ul>
<li>システム起動時にMySQLを起動させたい場合は<code>MySQLStartupItem.pkg</code>をインストールする</li>
<li><code>MySQLStartupItem.pkg</code>は一度インストールすれば、MySQLをバージョンアップしてもそのまま使える</li>
<li>起動スクリプトは <code>/Library/StartupItems/MySQLCOM</code> にインストールされる(MySQL 4.1.2以前は<code>MySQL</code>という名前)</li>
<li>インストーラは <code>/etc/hostconfig</code> に <code>MYSQLCOM=-YES-</code> を追加する</li>
<li>自動起動を無効にしたい場合は <code>MYSQLCOM=-NO-</code> に書き換える</li>
</ul></li>
<li>サーバプロセスの手動起動

<ul>
<li>起動スクリプトをインストールした場合

<ul>
<li><code>$ sudo /Library/StartupItems/MySQLCOM/MySQLCOM start</code></li>
</ul></li>
<li>起動スクリプトをインストールしていない場合

<ul>
<li><code>$ cd /usr/local/mysql</code></li>
<li><code>$ sudo ./bin/mysqld_safe</code></li>
<li><code>$ bg</code></li>
</ul></li>
</ul></li>
<li>最初に権限テーブルに含まれているアカウントにはパスワードが設定されていないので、サーバ起動後にパスワードを設定すること</li>
<li>PATH環境変数に <code>/usr/local/mysql/bin/</code> を追加する</li>
<li>アップグレード

<ul>
<li>MySQL のアップグレード時には古いバージョンのディレクトリはそのまま完全に残る</li>
<li>既存のデータベースを移行したい場合は、古いデータディレクトリを新しいデータディレクトリにコピーする</li>
<li>その際、新旧いずれのサーバプロセスも動いていないことを確認すること</li>
<li>以降が上手くいったら古いバージョンのディレクトリは削除してもよい</li>
<li>古いバージョンのレシピファイル <code>/Library/Receipts/mysql-VERSION.pkg</code> も削除する</li>
</ul></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://old-journal.sooey.com/2007/08/20/655/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MySQL 5.0.0</title>
		<link>http://old-journal.sooey.com/2003/12/27/192/</link>
		<comments>http://old-journal.sooey.com/2003/12/27/192/#comments</comments>
		<pubDate>Sat, 27 Dec 2003 10:47:43 +0000</pubDate>
		<dc:creator>juno</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[mysql]]></category>

		<guid isPermaLink="false">http://www.sooey.com/journal/2003/12/27/192/</guid>
		<description><![CDATA[ストアドプロシージャをサポートしたMySQL 5.0.0がリリースされました。5.0系列での最初のアルファリリースということで、当然まだ様子見なわけですが。
]]></description>
			<content:encoded><![CDATA[<p>ストアドプロシージャをサポートしたMySQL 5.0.0が<a href="http://lists.mysql.com/announce/178">リリース</a>されました。5.0系列での最初のアルファリリースということで、当然まだ様子見なわけですが。</p>
]]></content:encoded>
			<wfw:commentRss>http://old-journal.sooey.com/2003/12/27/192/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>TapKit</title>
		<link>http://old-journal.sooey.com/2003/12/23/183/</link>
		<comments>http://old-journal.sooey.com/2003/12/23/183/#comments</comments>
		<pubDate>Tue, 23 Dec 2003 09:55:11 +0000</pubDate>
		<dc:creator>juno</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false">http://www.sooey.com/journal/2003/12/23/183/</guid>
		<description><![CDATA[Ruby用のORマッピングフレームワークTapKit。WebObjectsのEOF技術を参考に設計されているそうです。

現状ではMySQLでのみ動作
フォールティング(Lazy Loading)を備える
主キーおよび外部キーは整数型に限定
主キー値および外部キー値の変更はサポートしない
複合主キーも扱えるが、値の自動生成は行わない
クエリ言語は独自で、簡単な比較とlike、ワイルドカードなどをサポート
]]></description>
			<content:encoded><![CDATA[<p>Ruby用のORマッピングフレームワーク<a href="http://www.spice-of-life.net/download/tapkit/index_ja.html">TapKit</a>。WebObjectsのEOF技術を参考に設計されているそうです。</p>

<ul>
<li>現状ではMySQLでのみ動作</li>
<li>フォールティング(Lazy Loading)を備える</li>
<li>主キーおよび外部キーは整数型に限定</li>
<li>主キー値および外部キー値の変更はサポートしない</li>
<li>複合主キーも扱えるが、値の自動生成は行わない</li>
<li>クエリ言語は独自で、簡単な比較とlike、ワイルドカードなどをサポート</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://old-journal.sooey.com/2003/12/23/183/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Wakka</title>
		<link>http://old-journal.sooey.com/2003/11/27/137/</link>
		<comments>http://old-journal.sooey.com/2003/11/27/137/#comments</comments>
		<pubDate>Thu, 27 Nov 2003 04:14:59 +0000</pubDate>
		<dc:creator>juno</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[wiki]]></category>

		<guid isPermaLink="false">http://www.sooey.com/journal/2003/11/27/137/</guid>
		<description><![CDATA[PHPとMySQLを使用したWikiエンジン Wakka。Final Fantasy Xに登場するキャラクター「ワッカ」が名前の由来みたい。
]]></description>
			<content:encoded><![CDATA[<p>PHPとMySQLを使用したWikiエンジン <a href="http://wikkawiki.org/WakkaWiki">Wakka</a>。Final Fantasy Xに登場するキャラクター「ワッカ」が名前の由来みたい。</p>
]]></content:encoded>
			<wfw:commentRss>http://old-journal.sooey.com/2003/11/27/137/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->
