<?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>Nicolas Kuttler &#187; SQL</title>
	<atom:link href="http://www.nkuttler.de/tag/sql/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.nkuttler.de</link>
	<description>WordPress Services, IT Services</description>
	<lastBuildDate>Wed, 28 Jul 2010 23:49:18 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Typo3, mount points and realurl</title>
		<link>http://www.nkuttler.de/2009/09/20/typo3-mount-points-and-realurl/</link>
		<comments>http://www.nkuttler.de/2009/09/20/typo3-mount-points-and-realurl/#comments</comments>
		<pubDate>Sun, 20 Sep 2009 10:27:55 +0000</pubDate>
		<dc:creator>nicolas</dc:creator>
				<category><![CDATA[Content Management]]></category>
		<category><![CDATA[realurl]]></category>
		<category><![CDATA[SEO]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[Typo3]]></category>
		<category><![CDATA[typoscript]]></category>

		<guid isPermaLink="false">http://www.nkuttler.de/?p=943</guid>
		<description><![CDATA[Are you having problems with mount points in Typo3? Do you get errors like Illegal Mount Point found in rootline or The requested page didn&#8217;t have a proper connection to the tree-root!, especially when you select the Substitute Mount Point (this page) with Mounted page option? Assuming you did read the fine realurl manual and [...]]]></description>
			<content:encoded><![CDATA[<p>Are you having problems with mount points in Typo3? Do you get errors like <strong>Illegal Mount Point found in rootline</strong> or <strong>The requested page didn&#8217;t have a proper connection to the tree-root!</strong>, especially when you select the <strong>Substitute Mount Point (this page) with Mounted page</strong> option?<span id="more-943"></span></p>
<p>Assuming you did read the <a href="http://wiki.typo3.org/index.php/Realurl/manual">fine realurl manual</a> and have done everything mentioned there, your errors probably originate from an outdated realurl pathcache. You can turn off realurl to confirm this.</p>
<p>If realurl is causing the errors, use your favorite (my)sql client and delete the contents of the <tt>tx_realurl_pathcache</tt> table:</p>

<div class="wp_syntax"><div class="code"><pre class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">DELETE</span> <span style="color: #993333; font-weight: bold;">FROM</span> tx_realurl_pathcache;</pre></div></div>

<p>This should allow you to have mount points with nice, SEO-friendly URLs across multiple domains.</p>
<p><strong>Edit</strong>: If you don&#8217;t want to mess with the database, see the <a href="http://typo3.org/documentation/document-library/extension-manuals/realurl/current/">fine manual</a> for ways to disable and clear the cache.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nkuttler.de/2009/09/20/typo3-mount-points-and-realurl/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Moving WordPress comments</title>
		<link>http://www.nkuttler.de/2009/03/23/moving-wordpress-comments/</link>
		<comments>http://www.nkuttler.de/2009/03/23/moving-wordpress-comments/#comments</comments>
		<pubDate>Mon, 23 Mar 2009 08:44:06 +0000</pubDate>
		<dc:creator>nicolas</dc:creator>
				<category><![CDATA[Content Management]]></category>
		<category><![CDATA[comments]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[WordPress]]></category>

		<guid isPermaLink="false">http://www.nkuttler.de//?p=731</guid>
		<description><![CDATA[Edit: I wrote a plugin to make this easier, see the move WordPress comments plugin page. Do you sometimes get comments that should be on a different post or page on your WordPress blog? I get such posts from time to time and always wondered how to move them to a different post. It turns [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Edit:</strong> I wrote a plugin to make this easier, see the <a href="http://www.nkuttler.de//nkmovecomments">move WordPress comments plugin</a> page.</p>
<p>Do you sometimes get comments that should be on a different post or page on your WordPress blog? I get such posts from time to time and always wondered how to move them to a different post. It turns out to be quite easy.<span id="more-731"></span><br />
The information, on which post or page your comment resides, is stored in the <tt>wp_comments</tt> table of your blog database, in the <tt>comment_post_ID</tt> column. So use your favorite mysql client (like phpmyadmin) and change it.</p>
<p>If you don&#8217;t know how to find the comment: you can get the comment&#8217;s <tt>comment_ID</tt> in several ways, for example by hovering over the <tt>Edit</tt> comment link in your dashboard. To get the desired <tt>comment_post_ID</tt> you can use the same strategy and hover over the <tt>Edit</tt> post link.</p>
<p>I prefer to use the command line <tt>mysql</tt> client, and the plain SQL statement looks like</p>

<div class="wp_syntax"><div class="code"><pre class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">UPDATE</span> wp_comments <span style="color: #993333; font-weight: bold;">SET</span> comment_post_ID<span style="color: #66cc66;">=</span>XXX <span style="color: #993333; font-weight: bold;">WHERE</span> comment_ID<span style="color: #66cc66;">=</span>YYY;</pre></div></div>

<p><tt>XXX</tt> is the ID of the page you want the comment to be on, <tt>YYY</tt> is the comment&#8217;s ID. If in doubt, refer to the <a href="http://dev.mysql.com/doc/refman/5.0/en/update.html">fine manual</a>.</p>
<p>By the way, if you want to fix the threading of a comment, my guess would be that you need to change the <tt>comment_parent</tt> to the parent comment&#8217;s ID. I will update the post when I tried that.</p>
<p><strong>Edit:</strong> You should also do this the following:</p>

<div class="wp_syntax"><div class="code"><pre class="sql" style="font-family:monospace;"><span style="color: #993333; font-weight: bold;">UPDATE</span> wp_posts <span style="color: #993333; font-weight: bold;">SET</span> comment_count<span style="color: #66cc66;">=</span>comment_count<span style="color: #66cc66;">+</span><span style="color: #cc66cc;">1</span> <span style="color: #993333; font-weight: bold;">WHERE</span> ID<span style="color: #66cc66;">=</span>XXX;
<span style="color: #993333; font-weight: bold;">UPDATE</span> wp_posts <span style="color: #993333; font-weight: bold;">SET</span> comment_count<span style="color: #66cc66;">=</span>comment_count<span style="color: #66cc66;">-</span><span style="color: #cc66cc;">1</span> <span style="color: #993333; font-weight: bold;">WHERE</span> ID<span style="color: #66cc66;">=</span>YYY;</pre></div></div>

<p><tt>XXX</tt> is the target page, <tt>YYY</tt> is the page where the comment was before.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nkuttler.de/2009/03/23/moving-wordpress-comments/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
