<?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>データベース &#8211; トモデジ  tomodigi.com</title>
	<atom:link href="https://tomodigi.com/tag/%e3%83%87%e3%83%bc%e3%82%bf%e3%83%99%e3%83%bc%e3%82%b9/feed/" rel="self" type="application/rss+xml" />
	<link>https://tomodigi.com</link>
	<description>デジタルもアナログも</description>
	<lastBuildDate>Mon, 05 Dec 2011 05:39:42 +0000</lastBuildDate>
	<language>ja</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.8.3</generator>
	<item>
		<title>MySQLでバイナリデータの扱い方</title>
		<link>https://tomodigi.com/web/mysql%e3%81%a7%e3%83%90%e3%82%a4%e3%83%8a%e3%83%aa%e3%83%87%e3%83%bc%e3%82%bf%e3%81%ae%e6%89%b1%e3%81%84%e6%96%b9/</link>
					<comments>https://tomodigi.com/web/mysql%e3%81%a7%e3%83%90%e3%82%a4%e3%83%8a%e3%83%aa%e3%83%87%e3%83%bc%e3%82%bf%e3%81%ae%e6%89%b1%e3%81%84%e6%96%b9/#respond</comments>
		
		<dc:creator><![CDATA[Tomo]]></dc:creator>
		<pubDate>Tue, 06 Dec 2011 03:25:18 +0000</pubDate>
				<category><![CDATA[PHP]]></category>
		<category><![CDATA[WEB]]></category>
		<category><![CDATA[bin2hex]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[データベース]]></category>
		<guid isPermaLink="false">http://www.tomodigi.com/?p=477</guid>

					<description><![CDATA[PHP+MySQLでバイナリデータをINSERTするときには、bin2hex関数などを用いて、16進数に変換してから渡します。 例えば INSERT tablename INTO "(`id`, `name`, `loc &#8230; <a href="https://tomodigi.com/web/mysql%e3%81%a7%e3%83%90%e3%82%a4%e3%83%8a%e3%83%aa%e3%83%87%e3%83%bc%e3%82%bf%e3%81%ae%e6%89%b1%e3%81%84%e6%96%b9/" class="more-link">続きを読む <span class="screen-reader-text">MySQLでバイナリデータの扱い方</span> <span class="meta-nav">&#8594;</span></a>]]></description>
										<content:encoded><![CDATA[<p>PHP+MySQLでバイナリデータをINSERTするときには、bin2hex関数などを用いて、16進数に変換してから渡します。</p>
<p></p>
<p>例えば</p>
<pre>INSERT tablename INTO "(`id`, `name`, `location`) VALUES (1,'名前',0x[bin2hexの文字列]);</pre>
<p>となります。</p>
<p>注意点としては、文字列ではないので &#8216;（シングルクォート）で囲まないこと、16進数であることを示す0xを（半角ゼロ、エックス）をbin2hexで変換した16進数の先頭に付け足すことです。</p>
<p>このあたりが間違っていると、1064エラーが出てしまいます。</p>
]]></content:encoded>
					
					<wfw:commentRss>https://tomodigi.com/web/mysql%e3%81%a7%e3%83%90%e3%82%a4%e3%83%8a%e3%83%aa%e3%83%87%e3%83%bc%e3%82%bf%e3%81%ae%e6%89%b1%e3%81%84%e6%96%b9/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>WordPressのデータベースサーバのみ引っ越し</title>
		<link>https://tomodigi.com/web/wordpress%e3%81%ae%e3%83%87%e3%83%bc%e3%82%bf%e3%83%99%e3%83%bc%e3%82%b9%e3%82%b5%e3%83%bc%e3%83%90%e3%81%ae%e3%81%bf%e5%bc%95%e3%81%a3%e8%b6%8a%e3%81%97/</link>
					<comments>https://tomodigi.com/web/wordpress%e3%81%ae%e3%83%87%e3%83%bc%e3%82%bf%e3%83%99%e3%83%bc%e3%82%b9%e3%82%b5%e3%83%bc%e3%83%90%e3%81%ae%e3%81%bf%e5%bc%95%e3%81%a3%e8%b6%8a%e3%81%97/#respond</comments>
		
		<dc:creator><![CDATA[Tomo]]></dc:creator>
		<pubDate>Sat, 03 Dec 2011 03:06:15 +0000</pubDate>
				<category><![CDATA[WEB]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[レンタルサーバー]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[さくらインターネット]]></category>
		<category><![CDATA[データベース]]></category>
		<guid isPermaLink="false">http://www.tomodigi.com/?p=472</guid>

					<description><![CDATA[いつの間にか、さくらのレンタルサーバのスタンダードで扱える MySQL データベースの数が1から20に増えていました。 いままで1つに諸々のサイトのデータベースを突っ込んでいたので、管理しやすくするために、分けることにし &#8230; <a href="https://tomodigi.com/web/wordpress%e3%81%ae%e3%83%87%e3%83%bc%e3%82%bf%e3%83%99%e3%83%bc%e3%82%b9%e3%82%b5%e3%83%bc%e3%83%90%e3%81%ae%e3%81%bf%e5%bc%95%e3%81%a3%e8%b6%8a%e3%81%97/" class="more-link">続きを読む <span class="screen-reader-text">WordPressのデータベースサーバのみ引っ越し</span> <span class="meta-nav">&#8594;</span></a>]]></description>
										<content:encoded><![CDATA[<p>いつの間にか、さくらのレンタルサーバのスタンダードで扱える MySQL データベースの数が1から20に増えていました。</p>
<p>いままで1つに諸々のサイトのデータベースを突っ込んでいたので、管理しやすくするために、分けることにしました。さくらの場合、MySQLのデータベースはバージョンによってサーバが異なる仕様です。ついでに5.1から5.5にバージョンアップしたデータベースを作成しました。他のレンタルサーバでは、localhostに接続することで使用できますが、さくらのレンタルサーバでは個別のサーバ名を指定することになります。</p>
<p>今回は別のサーバになりましたので、PhpMyAdminで手元のPCにバックアップしたものを、新しいサーバにそのままリストアしました。テーブルの数は12個でした。</p>
<p>その後、Wordpressをインストールしたフォルダのwp-config.phpのデータベース関連の記述を新しいものに変更しました。これで引っ越しは完了です。</p>
]]></content:encoded>
					
					<wfw:commentRss>https://tomodigi.com/web/wordpress%e3%81%ae%e3%83%87%e3%83%bc%e3%82%bf%e3%83%99%e3%83%bc%e3%82%b9%e3%82%b5%e3%83%bc%e3%83%90%e3%81%ae%e3%81%bf%e5%bc%95%e3%81%a3%e8%b6%8a%e3%81%97/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
