<?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>Everyone has an opinion &#187; fix</title>
	<atom:link href="http://www.derekjhunt.org/blog/tag/fix/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.derekjhunt.org/blog</link>
	<description>Thoughts and rants about UNIX, music, film and politics.</description>
	<lastBuildDate>Sun, 18 Jul 2010 17:21:07 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
		<item>
		<title>Fixing WordPress Upgrade Errors [Table &#039;wp_terms&#039; doesn&#039;t exist]</title>
		<link>http://www.derekjhunt.org/blog/2009/07/08/fixing-wordpress-upgrade-errors-table-wp_terms-doesnt-exist/</link>
		<comments>http://www.derekjhunt.org/blog/2009/07/08/fixing-wordpress-upgrade-errors-table-wp_terms-doesnt-exist/#comments</comments>
		<pubDate>Wed, 08 Jul 2009 20:41:03 +0000</pubDate>
		<dc:creator>derek</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Tech]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[fix]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[wp_terms]]></category>

		<guid isPermaLink="false">http://www.derekjhunt.org/blog/?p=55</guid>
		<description><![CDATA[If you have ever seen one of these exceptionally annoying errors populating your apache logs after upgrading wordpress: WordPress database error Table 'database.wp_terms' doesn't exist for query SELECT t.*, tt.* FROM wp_ terms AS t INNER JOIN wp_term_taxonomy AS tt ON t.term_id = tt.term_id WHERE tt. taxonomy IN ('category') AND ( t.term_id 1 ) ORDER [...]]]></description>
			<content:encoded><![CDATA[<p>If you have ever seen one of these exceptionally annoying errors populating your apache logs after upgrading wordpress: <code><br />
WordPress database error Table 'database.wp_terms' doesn't exist for query SELECT t.*, tt.* FROM wp_<br />
terms AS t INNER JOIN wp_term_taxonomy AS tt ON t.term_id = tt.term_id WHERE tt.<br />
taxonomy IN ('category')  AND ( t.term_id <> 1 ) ORDER BY t.name ASC  made by require, require_once, include, get_sidebar, locate_template, load_template, require_once, wp_list_cats, wp_list_categories, get_categories, get_terms<br />
</code><br />
There is a relatively easy fix, however, finding it was not so easy.</p>
<p>I found a pointer here:</p>
<p>http://osterman.com/wordpress/2007/10/15/wordpress-database-error-table-wp_terms-doesnt-exist</p>
<p>However, this didn&#8217;t work for me. The page always mentioned the database was already upgraded.  Digging around on the WordPress Codex, revealed <a href="http://codex.wordpress.org/FAQ_Installation#How_do_you_force_a_database_upgrade.3F" target="_blank">this handy link</a> about forcing a database upgrade.</p>
<p>Here is what I did to fix the problem</p>
<p>Open mysql and select the db: <code><br />
[root@host ~]# mysql -u dbuser -p<br />
Enter password:<br />
Welcome to the MySQL monitor.  Commands end with ; or \g.<br />
Your MySQL connection id is 15762<br />
Server version: 5.0.45 Source distribution</p>
<p>Type 'help;' or '\h' for help. Type '\c' to clear the buffer.</p>
<p>mysql> use wordpress;</p>
<p>Database changed<br />
</code><br />
Next change the value of the DB to a previous version or wordpress (check <a href="http://http://codex.wordpress.org/FAQ_Installation#How_do_you_force_a_database_upgrade.3F" target="_blank">here</a> for a list of values). <code><br />
mysql> update wp_options set option_value='6124' where option_name="db_version";</p>
<p>Query OK, 1 row affected (0.00 sec)<br />
Rows matched: 1  Changed: 1  Warnings: 0</p>
<p>mysql><br />
</code><br />
Next, run the upgrade script:</p>
<p>http://domain/wordpress/wp-admin/upgrade.php</p>
<p>If you receive errors, change the db_version to a different value and try again.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.derekjhunt.org/blog/2009/07/08/fixing-wordpress-upgrade-errors-table-wp_terms-doesnt-exist/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk
Page Caching using disk (enhanced)

Served from: www.derekjhunt.org @ 2012-02-05 05:16:16 -->
