<?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>WP Engineer &#187; sql</title>
	<atom:link href="http://wpengineer.com/tag/sql/feed/" rel="self" type="application/rss+xml" />
	<link>http://wpengineer.com</link>
	<description>WordPress News, Hacks, Tips, Tutorials, Plugins and Themes</description>
	<lastBuildDate>Mon, 21 May 2012 22:48:48 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Delete all Feed Cache via SQL in WordPress</title>
		<link>http://wpengineer.com/2114/delete-all-feed-cache-via-sql-in-wordpress/</link>
		<comments>http://wpengineer.com/2114/delete-all-feed-cache-via-sql-in-wordpress/#comments</comments>
		<pubDate>Sat, 11 Dec 2010 11:25:10 +0000</pubDate>
		<dc:creator>Frank</dc:creator>
				<category><![CDATA[WordPress Hacks]]></category>
		<category><![CDATA[Advent Calendar]]></category>
		<category><![CDATA[cache]]></category>
		<category><![CDATA[Code]]></category>
		<category><![CDATA[sql]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[WP]]></category>

		<guid isPermaLink="false">http://wpengineer.com/?p=2114</guid>
		<description><![CDATA[The Feed-Cache of WordPress is in the database, it's in the table options and sometimes you like to delete it. With a little SQL this is done quite quickly - but be careful, there is no way back! Within WordPress I do it with the help of the Plugin Adminer, which allows a complete mySQL [...]]]></description>
			<content:encoded><![CDATA[<p><img src="http://wpengineer.com/wp-content/uploads/WordPress-Christmas-2010-11.jpg" alt="" title="WordPress-Christmas-2010-11" width="400" height="267" class="aligncenter size-full wp-image-2127" /><br />
The Feed-Cache of WordPress is in the database, it's in the table <code>options</code> and sometimes you like to delete it. With a little SQL this is done quite quickly - but be careful, there is no way back! Within WordPress I do it with the help of the Plugin <a href="http://wordpress.org/extend/plugins/adminer/">Adminer</a>, which allows a complete mySQL access and you are still able to work in the backend of WordPress. Alternatively it's also possible with phpMyAdmin for example.<br />
<span id="more-2114"></span><br />
<img src="http://wpengineer.com/wp-content/uploads/sql-feedcache.png" alt="" title="sql-feedcache" width="634" height="177" class="aligncenter size-full wp-image-2115" /></p>
<p>With the help of the following syntax you can delete the cache very fast, you have to adjust the example prefix <code>wp_</code> of course.</p>
<pre>
DELETE FROM `wp_options` WHERE `option_name` LIKE (&#039;_transient%_feed_%&#039;)
</pre>
<hr /><a href="http://wpplugins.com/plugin/281/snippets" title="More informations about this plugin for WordPress"><img src="http://wpengineer.com/wp-content/themes/wpe-3/images/snippets-125-125.png" height="90" alt="WordPress Snippet Plugin" /></a> <a href="http://xtreme-theme.com"><img src="http://wpengineer.com/wp-content/uploads/feed-banner-2.jpg" alt="Xtreme One WordPress Framework"/></a><br />
&copy; <a href="http://wpengineer.com/">WP Engineer Team</a>, All rights reserved <small>(Digital Fingerprint: WPEngineer-be0254ce2b4972feb4b9cb72034a092d)</small></p>
]]></content:encoded>
			<wfw:commentRss>http://wpengineer.com/2114/delete-all-feed-cache-via-sql-in-wordpress/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>WordPress Database Repair Script In 2.9</title>
		<link>http://wpengineer.com/1836/wordpress-database-repair-script-in-2-9/</link>
		<comments>http://wpengineer.com/1836/wordpress-database-repair-script-in-2-9/#comments</comments>
		<pubDate>Fri, 13 Nov 2009 17:21:35 +0000</pubDate>
		<dc:creator>Frank</dc:creator>
				<category><![CDATA[WordPress News]]></category>
		<category><![CDATA[Constants]]></category>
		<category><![CDATA[sql]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[wp2.9]]></category>

		<guid isPermaLink="false">http://wpengineer.com/?p=1836</guid>
		<description><![CDATA[A little tip for all users of the existing beta of WordPress 2.9 and for all who wish to update soon to the new version. With version 2.9 WordPress conducts its own routine to optimize the database. Previously it was done by either Plugins or via SQL access. From the next version this function is [...]]]></description>
			<content:encoded><![CDATA[<p>A little tip for all users of the existing beta of WordPress 2.9 and for all who wish to update soon to the new version. With version 2.9 WordPress conducts its own routine to optimize the database. Previously it was done by either Plugins or via SQL access. From the next version this function is implemented in the core ...<br />
<span id="more-1836"></span><br />
<a href="http://wpengineer.com/wp-content/uploads/wprdb11.png"><img src="http://wpengineer.com/wp-content/uploads/wprdb11-300x78.png" alt="wprdb1" title="wprdb1" width="300" height="78" class="aligncenter size-medium wp-image-1838" /></a></p>
<p>... which you can activate with the help of a constant; stored in <code>wp-config.php</code>, you have access to the script.</p>
<pre lang="php">
define(&#039;WP_ALLOW_REPAIR&#039;, true);
</pre>
<p>Call the script from the outside at the following address ...<br />
<code>http://example.com/wp-admin/maint/repair.php</code></p>
<p>... where you either repair the database or run the optimization. Technically, there is no magic behind this work, but the familiar SQL statements <a href="http://dev.mysql.com/doc/refman/5.1/en/analyze-table.html"><code>ANALYZE TABLE</code></a>, <a href="http://dev.mysql.com/doc/refman/5.1/en/repair-table.html"><code>REPAIR TABLE</code></a> and <a href="http://dev.mysql.com/doc/refman/5.1/en/optimize-table.html"><code>OPTIMIZE TABLE</code></a>.</p>
<p><a href="http://wpengineer.com/wp-content/uploads/wprdb.png"><img src="http://wpengineer.com/wp-content/uploads/wprdb-300x127.png" alt="wprdb" title="wprdb" width="300" height="127" class="aligncenter size-medium wp-image-1841" /></a></p>
<p>I guess that will start a debate, why with the constant and why from the outside, etc. - leave your comment here. Alternatively, anyone can contribute to WordPress and discuss directly with the developers or enter changes directly to the code.<br />
<hr /><a href="http://wpplugins.com/plugin/281/snippets" title="More informations about this plugin for WordPress"><img src="http://wpengineer.com/wp-content/themes/wpe-3/images/snippets-125-125.png" height="90" alt="WordPress Snippet Plugin" /></a> <a href="http://xtreme-theme.com"><img src="http://wpengineer.com/wp-content/uploads/feed-banner-2.jpg" alt="Xtreme One WordPress Framework"/></a><br />
&copy; <a href="http://wpengineer.com/">WP Engineer Team</a>, All rights reserved <small>(Digital Fingerprint: WPEngineer-be0254ce2b4972feb4b9cb72034a092d)</small></p>
]]></content:encoded>
			<wfw:commentRss>http://wpengineer.com/1836/wordpress-database-repair-script-in-2-9/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
	</channel>
</rss>

