<?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>SQL Archives - VirtJunkie</title>
	<atom:link href="/tag/sql/feed/" rel="self" type="application/rss+xml" />
	<link>/tag/sql/</link>
	<description>Virtualization, Automation, and anything else that might be on my mind</description>
	<lastBuildDate>Sat, 18 Oct 2008 06:08:17 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.5.5</generator>

<image>
	<url>/wp-content/uploads/2020/04/cropped-vj4-150x150.png</url>
	<title>SQL Archives - VirtJunkie</title>
	<link>/tag/sql/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Change the Author of Multiple WordPress Posts</title>
		<link>/2008/10/18/change-the-author-of-multiple-wordpress-posts/</link>
					<comments>/2008/10/18/change-the-author-of-multiple-wordpress-posts/#respond</comments>
		
		<dc:creator><![CDATA[Jon]]></dc:creator>
		<pubDate>Sat, 18 Oct 2008 06:08:17 +0000</pubDate>
				<category><![CDATA[Web Development]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[Wordpress]]></category>
		<guid isPermaLink="false">http://www.jonhoweonline.com/?p=231</guid>

					<description><![CDATA[<p>Disclaimer: This idea requires access to the shell on your webserver. This is the SQL query you&#8217;ll use: [crayon-667f6e9cda267594170886/] I had posts that were assigned to Admin (which by default is user ID 1), and I wanted to assign them all to my user (which in this case is user ID 2). My query looked [&#8230;]</p>
<p>The post <a href="/2008/10/18/change-the-author-of-multiple-wordpress-posts/">Change the Author of Multiple WordPress Posts</a> appeared first on <a href="/">VirtJunkie</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Disclaimer: This idea requires access to the shell on your webserver.</p>
<p>This is the SQL query you&#8217;ll use:</p>
<p></p><pre class="urvanov-syntax-highlighter-plain-tag">UPDATE wp_posts 
SET post_author='[NEW ID]' 
WHERE post_author='[EXISTING ID]';</pre><p></p>
<p>I had posts that were assigned to Admin (which by default is user ID 1), and I wanted to assign them all to my user (which in this case is user ID 2).</p>
<p>My query looked like this:</p>
<p></p><pre class="urvanov-syntax-highlighter-plain-tag">UPDATE wp_posts 
SET post_author='2' 
WHERE post_author='1';</pre><p></p>
<p>That will go through the posts database and update the author for all of them.</p>
<p>&#8212;<br />
Jon</p>
<p>The post <a href="/2008/10/18/change-the-author-of-multiple-wordpress-posts/">Change the Author of Multiple WordPress Posts</a> appeared first on <a href="/">VirtJunkie</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>/2008/10/18/change-the-author-of-multiple-wordpress-posts/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
