<?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>Shawson&#039;s Code Blog &#187; import</title>
	<atom:link href="http://codeblog.shawson.co.uk/tag/import/feed/" rel="self" type="application/rss+xml" />
	<link>http://codeblog.shawson.co.uk</link>
	<description>development notes for my failing memory</description>
	<lastBuildDate>Wed, 01 Feb 2012 11:00:16 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>MySQL Backup &amp; Restore</title>
		<link>http://codeblog.shawson.co.uk/mysql-backup-restore/</link>
		<comments>http://codeblog.shawson.co.uk/mysql-backup-restore/#comments</comments>
		<pubDate>Fri, 29 Jan 2010 19:40:06 +0000</pubDate>
		<dc:creator>shawson</dc:creator>
				<category><![CDATA[mySQL]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[disaster recovery]]></category>
		<category><![CDATA[export]]></category>
		<category><![CDATA[import]]></category>
		<category><![CDATA[restore]]></category>

		<guid isPermaLink="false">http://www.shawson.co.uk/codeblog/?p=461</guid>
		<description><![CDATA[I did this on an install of MySQL 5 Community Server running on Windows 2008 Server Web Edition- From the command line- backup: mysqldump -u [username] -p[password] [database name] > FILE.sql restore; mysql -u [username] -p[password] [database name] < FILE.sql Remember; if you have restored your core mysql database, which contains all the info on [...]


Related posts:<ul><li><a href='http://codeblog.shawson.co.uk/mysql-5-phpmyadmin-installation-root-account-not-accepted/' rel='bookmark' title='MySQL 5 / phpMyAdmin Installation &#8211; root account not accepted'>MySQL 5 / phpMyAdmin Installation &#8211; root account not accepted</a></li>
<li><a href='http://codeblog.shawson.co.uk/mysql-command-line-setting-up-a-new-database-and-user/' rel='bookmark' title='MySQL Command Line &#8211; Setting up a new database and user'>MySQL Command Line &#8211; Setting up a new database and user</a></li>
<li><a href='http://codeblog.shawson.co.uk/mysql-5-1-with-dotnet-claims-procedure-or-function-cannot-be-found-in-database/' rel='bookmark' title='MySQL 5.1 with DotNet claims Procedure or function &#8216;&lt;procedure-name&gt;&#8216; cannot be found in database &#8216;&lt;database-name&gt;&#8216;'>MySQL 5.1 with DotNet claims Procedure or function &#8216;<procedure-name>&#8216; cannot be found in database &#8216;<database-name>&#8216;</a></li>
</ul>]]></description>
			<content:encoded><![CDATA[<p>I did this on an install of MySQL 5 Community Server running on Windows 2008 Server Web Edition- From the command line- <strong>backup</strong>:</p>
<p>mysqldump -u [username] -p[password] [database name] > FILE.sql </p>
<p><strong>restore</strong>;</p>
<p>mysql -u [username] -p[password] [database name] < FILE.sql </p>
<p>Remember; if you have restored your core mysql database, which contains all the info on users and privileges, you will need to do a </p>
<p>FLUSH PRIVILEGES; </p>
<p>before you will be able to login using those user accounts!</p>


<p>Related posts:<ul><li><a href='http://codeblog.shawson.co.uk/mysql-5-phpmyadmin-installation-root-account-not-accepted/' rel='bookmark' title='MySQL 5 / phpMyAdmin Installation &#8211; root account not accepted'>MySQL 5 / phpMyAdmin Installation &#8211; root account not accepted</a></li>
<li><a href='http://codeblog.shawson.co.uk/mysql-command-line-setting-up-a-new-database-and-user/' rel='bookmark' title='MySQL Command Line &#8211; Setting up a new database and user'>MySQL Command Line &#8211; Setting up a new database and user</a></li>
<li><a href='http://codeblog.shawson.co.uk/mysql-5-1-with-dotnet-claims-procedure-or-function-cannot-be-found-in-database/' rel='bookmark' title='MySQL 5.1 with DotNet claims Procedure or function &#8216;&lt;procedure-name&gt;&#8216; cannot be found in database &#8216;&lt;database-name&gt;&#8216;'>MySQL 5.1 with DotNet claims Procedure or function &#8216;<procedure-name>&#8216; cannot be found in database &#8216;<database-name>&#8216;</a></li>
</ul></p>]]></content:encoded>
			<wfw:commentRss>http://codeblog.shawson.co.uk/mysql-backup-restore/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WordPress import from WordPress.org &#8211; 500 Server Errors &amp; Timeout&#8217;s!</title>
		<link>http://codeblog.shawson.co.uk/wordpress-import-from-wordpress-org-500-server-errors-timeouts/</link>
		<comments>http://codeblog.shawson.co.uk/wordpress-import-from-wordpress-org-500-server-errors-timeouts/#comments</comments>
		<pubDate>Tue, 04 Aug 2009 20:44:40 +0000</pubDate>
		<dc:creator>shawson</dc:creator>
				<category><![CDATA[blogging]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[FastCGI]]></category>
		<category><![CDATA[import]]></category>
		<category><![CDATA[timeout]]></category>
		<category><![CDATA[wordpress]]></category>

		<guid isPermaLink="false">http://www.shawson.co.uk/codeblog/?p=332</guid>
		<description><![CDATA[I&#8217;ve recently setup a wordpress blog to use when we&#8217;re on holiday to post pictures and let people know how we&#8217;re getting on. I had an existing hosted blog up at shawandtashinjapan.wordpress.com which I wanted to import to my new self hosted blog, but ran into a whole world of pain while trying to run [...]


Related posts:<ul><li><a href='http://codeblog.shawson.co.uk/wordpress-500-error-when-submitting-a-blank-comment-form-under-iis7-and-php5/' rel='bookmark' title='WordPress 500 Error when submitting a blank comment form under IIS7 and PHP5'>WordPress 500 Error when submitting a blank comment form under IIS7 and PHP5</a></li>
<li><a href='http://codeblog.shawson.co.uk/move-from-blogenginenet-to-wordpress-271/' rel='bookmark' title='Move from BlogEngine.net to WordPress 2.7.1!'>Move from BlogEngine.net to WordPress 2.7.1!</a></li>
<li><a href='http://codeblog.shawson.co.uk/permissions-problems-with-wordpress-on-php5iis7-windows-server-2008-sp2-with-fastcgi/' rel='bookmark' title='Permissions problems with WordPress on PHP5/IIS7 (Windows Server 2008 SP2) with FastCGI'>Permissions problems with WordPress on PHP5/IIS7 (Windows Server 2008 SP2) with FastCGI</a></li>
</ul>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve recently setup a wordpress blog to use when we&#8217;re on holiday to post pictures and let people know how we&#8217;re getting on.  I had an existing hosted blog up at <a href="http://shawandtashinjapan.wordpress.com" target="_blank">shawandtashinjapan.wordpress.com</a> which I wanted to import to my new self hosted blog, but ran into a whole world of pain while trying to run the built in importer.  </p>
<p>I ran an export from the wordpress.org hosted blog which gave me an xml file which contained wordpresses own variant of rss.  I then selected import from my new wordpress&#8217;s tools menu and gave it the xml file- all went well but when i asked it to download the attachments it all started to go to shit!</p>
<p>There were two main issues which i had to fix- the first was wordpress goes mental when it hits a 302 redirect when trying to grab an image, but there is a fix available for the download function in wordpress;</p>
<p>From : <a href="http://en.forums.wordpress.com/topic/downloading-images-for-import?replies=4">http://en.forums.wordpress.com/topic/downloading-images-for-import?replies=4</a></p>
<pre class="brush: php">
1052c1052
&lt; //ini_set(&quot;display_errors&quot;, true);
---
&gt;
1061,1069c1061
&lt; $response = wp_remote_request($url, $options);
&lt; $headers = wp_remote_retrieve_headers($response);
&lt;
&lt; $cd = (string)$response[&#039;response&#039;][&#039;code&#039;];
&lt;
&lt; if ($cd == &#039;301&#039;) {
&lt; $response = wp_remote_request($headers[&#039;location&#039;], $options);
&lt; $headers = wp_remote_retrieve_headers($response);
&lt; }
---
&gt; $response = wp_remote_request($url, $options);
1074c1066
&lt; //$headers = wp_remote_retrieve_headers( $response );
---
&gt; $headers = wp_remote_retrieve_headers( $response );
1077d1068
&lt;
</pre>
<p>
Then i&#8217;m hit with timeouts coming from the FastCGI module- I&#8217;m running PHP 5.2 under IIS7 on Windows 2008 Web Edition- the error I was now getting when trying to run the import was;
</p>
<blockquote><p>The FastCGI process exceeded configured activity timeout</p></blockquote>
<p>
I found the fix for this one here: <a href="http://forums.iis.net/t/1076662.aspx">http://forums.iis.net/t/1076662.aspx</a>.  It was down to the FastCGI module timeout being hit, so it was just a matter of increasing that from the command line i executed;
</p>
<pre class="brush: php">
%windir%\system32\inetsrv\appcmd set config -section:system.webServer/fastCgi /[fullPath=&#039;C:\php5\php-cgi.exe&#039;].activityTimeout:600
</pre>
<p>In the end, I STILL didn&#8217;t get all the images over as some of them were quite large and the wordpress file server timed out while the script was trying to grab them, but i thought i would post this none the less, to save anyone else having to experience the evening i just had.</p>
<p>ergh&#8230;</p>


<p>Related posts:<ul><li><a href='http://codeblog.shawson.co.uk/wordpress-500-error-when-submitting-a-blank-comment-form-under-iis7-and-php5/' rel='bookmark' title='WordPress 500 Error when submitting a blank comment form under IIS7 and PHP5'>WordPress 500 Error when submitting a blank comment form under IIS7 and PHP5</a></li>
<li><a href='http://codeblog.shawson.co.uk/move-from-blogenginenet-to-wordpress-271/' rel='bookmark' title='Move from BlogEngine.net to WordPress 2.7.1!'>Move from BlogEngine.net to WordPress 2.7.1!</a></li>
<li><a href='http://codeblog.shawson.co.uk/permissions-problems-with-wordpress-on-php5iis7-windows-server-2008-sp2-with-fastcgi/' rel='bookmark' title='Permissions problems with WordPress on PHP5/IIS7 (Windows Server 2008 SP2) with FastCGI'>Permissions problems with WordPress on PHP5/IIS7 (Windows Server 2008 SP2) with FastCGI</a></li>
</ul></p>]]></content:encoded>
			<wfw:commentRss>http://codeblog.shawson.co.uk/wordpress-import-from-wordpress-org-500-server-errors-timeouts/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

