<?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>wordmove | 志摩市のパソコン屋 | One&amp;Only</title>
	<atom:link href="https://www.oaopc.com/tag/wordmove/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.oaopc.com</link>
	<description>パソコンから、ものづくりまで。志摩市の暮らしにデジタルな便利さを。</description>
	<lastBuildDate>Wed, 06 May 2020 03:00:34 +0000</lastBuildDate>
	<language>ja</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.0</generator>

<image>
	<url>https://www.oaopc.com/wp-content/uploads/2021/01/akd37-r41bs-100x100.png</url>
	<title>wordmove | 志摩市のパソコン屋 | One&amp;Only</title>
	<link>https://www.oaopc.com</link>
	<width>32</width>
	<height>32</height>
</image> 
<site xmlns="com-wordpress:feed-additions:1">188148420</site>	<item>
		<title>またMySQLが&#8230;</title>
		<link>https://www.oaopc.com/mysql_error/</link>
					<comments>https://www.oaopc.com/mysql_error/#respond</comments>
		
		<dc:creator><![CDATA[Kebarhythm]]></dc:creator>
		<pubDate>Tue, 02 Oct 2018 13:42:12 +0000</pubDate>
				<category><![CDATA[Raspberry Pi]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[wordmove]]></category>
		<category><![CDATA[備忘録]]></category>
		<guid isPermaLink="false">http://www.morien.mydns.jp/?p=882</guid>

					<description><![CDATA[<p>またデータベース接続確立エラーが出てしまいました。 最近の傾向は、Raspberry Pi の再起動でMySQLがエラーとなりWordPressが見れなくなります。 再起動するまでは問題なく閲覧できてます。 なので再起動 [&#8230;]</p>
The post <a href="https://www.oaopc.com/mysql_error/">またMySQLが…</a> first appeared on <a href="https://www.oaopc.com">志摩市のパソコン屋 | One&Only</a>.]]></description>
										<content:encoded><![CDATA[<p>またデータベース接続確立エラーが出てしまいました。</p>
<p>最近の傾向は、Raspberry Pi の再起動でMySQLがエラーとなりWordPressが見れなくなります。<br />
再起動するまでは問題なく閲覧できてます。<br />
なので再起動する前には必ずwordmoveでバックアップを取るようにしてて、そのバックアップも問題無く完了します。<br />
どこかに原因があるのだと思うのですけど&#8230;</p>
<p>こうなってしまうとMySQLだけを修復することができずにRaspberry Piイメージの復元からやり直していましたが、やっとMySQLだけ修復することができました。</p>
<p><a rel="noopener" href="https://dev.mysql.com/doc/refman/5.6/ja/mysql-install-db.html" target="_blank">mysql_install_db — MySQL データディレクトリの初期化</a></p>
<p>リンクはMySQLのドキュメントです。ちゃんと読めってことですね。^^;</p>
<pre class="brush: bash; title: ; notranslate">
mysql_install_db --user=mysql --datadir=/opt/mysql/mysql/data
</pre>
<p>datadirオプションに新しいデータディレクトリを指定して実行すると、そこに初期状態のデータが作られます。cnfファイルのdatadirにその新しいデータディレクトリを指定し、MySQLの再起動でデータが初期化されたMySQLが起動します。<br />
データが初期化されているのでユーザーを整備し、wordmoveでデータベースの復元をして修復完了です。</p>
<p>そもそもの原因を突き止めるのが大事ですけど、これまでよりも早い復旧が出来るようになったのはかなりうれしいです。^^</p>The post <a href="https://www.oaopc.com/mysql_error/">またMySQLが…</a> first appeared on <a href="https://www.oaopc.com">志摩市のパソコン屋 | One&Only</a>.]]></content:encoded>
					
					<wfw:commentRss>https://www.oaopc.com/mysql_error/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">882</post-id>	</item>
		<item>
		<title>またまたクラッシュ&#8230;</title>
		<link>https://www.oaopc.com/crash_mysql/</link>
					<comments>https://www.oaopc.com/crash_mysql/#respond</comments>
		
		<dc:creator><![CDATA[Kebarhythm]]></dc:creator>
		<pubDate>Sat, 15 Sep 2018 13:12:52 +0000</pubDate>
				<category><![CDATA[Raspberry Pi]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[wordmove]]></category>
		<category><![CDATA[備忘録]]></category>
		<guid isPermaLink="false">http://www.morien.mydns.jp/?p=828</guid>

					<description><![CDATA[<p>またクラッシュしました。(T-T)自家サイトは色々ありますね。ボクだけかもしれませんけど。。 Raspberry Pi3 の再起動が始まり。再起動後postテーブルがクラッシュ。wordmoveで復元するもpostテーブ [&#8230;]</p>
The post <a href="https://www.oaopc.com/crash_mysql/">またまたクラッシュ…</a> first appeared on <a href="https://www.oaopc.com">志摩市のパソコン屋 | One&Only</a>.]]></description>
										<content:encoded><![CDATA[<p>またクラッシュしました。(T-T)<br />自家サイトは色々ありますね。ボクだけかもしれませんけど。。</p>
<p>Raspberry Pi3 の再起動が始まり。<br />再起動後postテーブルがクラッシュ。<br />wordmoveで復元するもpostテーブルだけ戻らず。<br />別にデーターベース作ってwordmoveで復元して復旧。<br />少し手を入れて再び再起動したら今度はMySql(MariaDB)がクラッシュでチーン&#8230;<br />何回かMySql(MariaDB)のクラッシュにみまわれてますけど復旧することができないんです。なのでバックアップイメージで数週間前の状態に戻し、wordmoveで復元してやっと環境が復旧。飛んでしまった投稿を再作成して、Pi3への変更を思い出しながら復元して今です。。</p>
<p>確実な原因は分かっていませんがプラグインのインストール＆操作後にクラッシュしてる気がしてます。<br />ただリビジョンを削除したかっただけなんですけど。<br />もうクラッシュはいやなので直接SQL文で削除することにします。</p>

<div class="wp-block-syntaxhighlighter-code "><pre class="brush: sql; title: ; notranslate">
DELETE FROM wp_posts WHERE post_status = 'inherit' AND post_type = 'revision';
</pre></div>


<p class="wp-block-paragraph"></p>The post <a href="https://www.oaopc.com/crash_mysql/">またまたクラッシュ…</a> first appeared on <a href="https://www.oaopc.com">志摩市のパソコン屋 | One&Only</a>.]]></content:encoded>
					
					<wfw:commentRss>https://www.oaopc.com/crash_mysql/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">828</post-id>	</item>
		<item>
		<title>Raspberry Pi をアップグレード</title>
		<link>https://www.oaopc.com/raspberry-pi-upgrade/</link>
					<comments>https://www.oaopc.com/raspberry-pi-upgrade/#respond</comments>
		
		<dc:creator><![CDATA[Kebarhythm]]></dc:creator>
		<pubDate>Thu, 30 Aug 2018 14:53:37 +0000</pubDate>
				<category><![CDATA[Raspberry Pi]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[wordmove]]></category>
		<guid isPermaLink="false">http://www.morien.mydns.jp/?p=790</guid>

					<description><![CDATA[<p>今日から Raspberry Pi 3 で運用開始です。 べつに Raspberry Pi Zero W に限界を感じた訳ではなく、Raspberry Pi 3 をナンバーディスプレイだけで使用してるのもどうかと思い P [&#8230;]</p>
The post <a href="https://www.oaopc.com/raspberry-pi-upgrade/">Raspberry Pi をアップグレード</a> first appeared on <a href="https://www.oaopc.com">志摩市のパソコン屋 | One&Only</a>.]]></description>
										<content:encoded><![CDATA[<p>今日から Raspberry Pi 3 で運用開始です。</p>
<p>べつに Raspberry Pi Zero W に限界を感じた訳ではなく、Raspberry Pi 3 をナンバーディスプレイだけで使用してるのもどうかと思い Pi 3 にWordPressを移しちゃうことにしました。</p>
<p><img fetchpriority="high" decoding="async" class="alignnone size-full wp-image-791" src="https://www.oaopc.com/wp-content/uploads/2018/08/20180829_172031.jpg" alt="" width="800" height="600" srcset="https://www.oaopc.com/wp-content/uploads/2018/08/20180829_172031.jpg 800w, https://www.oaopc.com/wp-content/uploads/2018/08/20180829_172031-300x225.jpg 300w, https://www.oaopc.com/wp-content/uploads/2018/08/20180829_172031-768x576.jpg 768w, https://www.oaopc.com/wp-content/uploads/2018/08/20180829_172031-676x507.jpg 676w" sizes="(max-width: 800px) 100vw, 800px" /></p>
<p><span id="more-790"></span></p>
<p><a rel="noopener" href="http://vccw.cc/" target="_blank">VCCW</a> で環境作ってあるから wordmove で簡単に移設できるはずが、、<br />
エラー表示無しで push が完了するもんだからおおはまりしました。<br />
メニューが表示されず、カテゴリーと投稿とのリンクが取れていない。<br />
データーベース確認していじったりしてもダメでもうお手上げ状態でした。</p>
<p>ダメもとで wordmove 使わずに mysqldump でバックアップとって、それを直接 mysql に復元したらエラーが出まくり。<br />
移設先のデータベースが壊れててどこかにゴミが残ってしまい Drop してデータベース消してもエラーが消えず、結局違う名前でデータベース作って復元したらエラー無しに移設できました。</p>
<p>wordmove がエラー吐いてくれればここまで時間掛からなかったのに&#8230;<br />
これも勉強ということでしょうか。。</p>
<p>ということでこの記事は Raspberry Pi 3 上で書いてます。(^-^)v</p>The post <a href="https://www.oaopc.com/raspberry-pi-upgrade/">Raspberry Pi をアップグレード</a> first appeared on <a href="https://www.oaopc.com">志摩市のパソコン屋 | One&Only</a>.]]></content:encoded>
					
					<wfw:commentRss>https://www.oaopc.com/raspberry-pi-upgrade/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">790</post-id>	</item>
		<item>
		<title>wordmoveのdatabaseでエラー</title>
		<link>https://www.oaopc.com/wordmove_database_error/</link>
					<comments>https://www.oaopc.com/wordmove_database_error/#respond</comments>
		
		<dc:creator><![CDATA[Kebarhythm]]></dc:creator>
		<pubDate>Fri, 17 Aug 2018 15:56:53 +0000</pubDate>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[wordmove]]></category>
		<guid isPermaLink="false">http://www.morien.mydns.jp/?p=772</guid>

					<description><![CDATA[<p>WordPressのバックアップは、Windowsマシン + vccw で処理してます。 いつもと同じようにwordmoveを走らせたらdatabaseのところで下記のエラーが出ました。 /home/vagrant/.g [&#8230;]</p>
The post <a href="https://www.oaopc.com/wordmove_database_error/">wordmoveのdatabaseでエラー</a> first appeared on <a href="https://www.oaopc.com">志摩市のパソコン屋 | One&Only</a>.]]></description>
										<content:encoded><![CDATA[<p>WordPressのバックアップは、Windowsマシン + <a rel="noopener" href="http://vccw.cc/" target="_blank">vccw</a> で処理してます。</p>
<p>いつもと同じようにwordmoveを走らせたらdatabaseのところで下記のエラーが出ました。</p>
<p><span style="color: #ff0000;">/home/vagrant/.gem/ruby/2.3.0/gems/wordmove-2.0.0/lib/wordmove/sql_adapter.rb:44:in `gsub!&#8217;: invalid byte sequence in UTF-8 (ArgumentError)</span></p>
<p>全く見当が付かないので、この長いエラー文字列をそのままコピペして検索。</p>
<p>かろうじて3件だけヒットした中のひとつがビンゴです。</p>
<p><a rel="noopener" href="https://github.com/welaika/wordmove/wiki/invalid-byte-sequence-in-UTF-8-while-pushing---pulling-db" target="_blank">invalid byte sequence in UTF 8 while pushing pulling db</a></p>
<p><span id="more-772"></span></p>
<p>このページに</p>
<h1>What should I do?</h1>
<h2><a id="user-content-use---hex-blob-mysqldumps-flag-recommended" class="anchor" href="https://github.com/welaika/wordmove/wiki/invalid-byte-sequence-in-UTF-8-while-pushing---pulling-db#use---hex-blob-mysqldumps-flag-recommended" aria-hidden="true"></a>Use <code>--hex-blob</code> mysqldump&#8217;s flag (recommended)</h2>
<p>って書いてあるので何も考えずに、Movefileを編集します。<br />
databese: の mysqldump_options: に &#8211;hex-blob を追加。</p>
<pre class="brush: plain; title: ; notranslate">
mysqldump_options: &quot;--hex-blob&quot;
</pre>
<p>編集後、<br />
wordmove pull -d<br />
を実行したらエラー無く終了しました。<br />
念のためにバックアップしたサイトを閲覧してみましたがヘンなところは見つからなかったのできっと大丈夫でしょう。^^</p>The post <a href="https://www.oaopc.com/wordmove_database_error/">wordmoveのdatabaseでエラー</a> first appeared on <a href="https://www.oaopc.com">志摩市のパソコン屋 | One&Only</a>.]]></content:encoded>
					
					<wfw:commentRss>https://www.oaopc.com/wordmove_database_error/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">772</post-id>	</item>
	</channel>
</rss>
