<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: How to Clear Your Old Database Tables</title>
	<atom:link href="http://curtisblackwell.com/how-to-clear-your-old-database-tables/feed/" rel="self" type="application/rss+xml" />
	<link>http://curtisblackwell.com/how-to-clear-your-old-database-tables/</link>
	<description>Curtis Blackwell&#039;s portfolio of web &#38; graphic design, accompanied by a design blog..</description>
	<lastBuildDate>Mon, 30 Aug 2010 10:57:21 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: treelhs</title>
		<link>http://curtisblackwell.com/how-to-clear-your-old-database-tables/comment-page-1/#comment-158</link>
		<dc:creator>treelhs</dc:creator>
		<pubDate>Mon, 30 Aug 2010 10:57:21 +0000</pubDate>
		<guid isPermaLink="false">http://curtisblackwell.com/?p=444#comment-158</guid>
		<description>Thank you so much; this really helps!</description>
		<content:encoded><![CDATA[<p>Thank you so much; this really helps!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: brandon runyon</title>
		<link>http://curtisblackwell.com/how-to-clear-your-old-database-tables/comment-page-1/#comment-141</link>
		<dc:creator>brandon runyon</dc:creator>
		<pubDate>Tue, 23 Mar 2010 14:12:08 +0000</pubDate>
		<guid isPermaLink="false">http://curtisblackwell.com/?p=444#comment-141</guid>
		<description>feel free to edit down my comments... eloquence isn&#039;t a strong suit of mine :-/</description>
		<content:encoded><![CDATA[<p>feel free to edit down my comments&#8230; eloquence isn&#8217;t a strong suit of mine :-/</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: brandon runyon</title>
		<link>http://curtisblackwell.com/how-to-clear-your-old-database-tables/comment-page-1/#comment-140</link>
		<dc:creator>brandon runyon</dc:creator>
		<pubDate>Tue, 23 Mar 2010 14:08:34 +0000</pubDate>
		<guid isPermaLink="false">http://curtisblackwell.com/?p=444#comment-140</guid>
		<description>I tested dropping the wordpress database and then creating a new one then &#039;upgrading&#039; (basically leaving the same installation on the server) and on my server it went right to the installation screen where I got a admin name and password. 

Then it seems to have recovered all the original start up tables without data in them.

Hopefully this is what you are going for. I don&#039;t keep a local server going on my laptop... only on my LAN and a shared hosting.</description>
		<content:encoded><![CDATA[<p>I tested dropping the wordpress database and then creating a new one then &#8216;upgrading&#8217; (basically leaving the same installation on the server) and on my server it went right to the installation screen where I got a admin name and password. </p>
<p>Then it seems to have recovered all the original start up tables without data in them.</p>
<p>Hopefully this is what you are going for. I don&#8217;t keep a local server going on my laptop&#8230; only on my LAN and a shared hosting.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: brandon runyon</title>
		<link>http://curtisblackwell.com/how-to-clear-your-old-database-tables/comment-page-1/#comment-139</link>
		<dc:creator>brandon runyon</dc:creator>
		<pubDate>Tue, 23 Mar 2010 13:49:04 +0000</pubDate>
		<guid isPermaLink="false">http://curtisblackwell.com/?p=444#comment-139</guid>
		<description>I&#039;m leaving out some details maybe, sorry:

-You need to log into your hosted server first with ssh from the terminal.
-Then log into mysql from inside ssh session and drop the target database, the create a new one of the same name.

The questions you need to ask yourself now are: 
-Does my hosting give ssh access? 
-Does my hosting give DROP privileges to my user?
-Does my hosting give CREATE privileges to my user?
-do all the tables in my wordpress database have wp_ as a prefix? 

If you meet all those requirements, then you can just drop the database real quick in one statement. If you own the server or have a dedicated hosting then you can do that too probably.

I don&#039;t use WP but I&#039;ve used elgg which has a similar database scheme and this typically worked for me.

To drop a database from mysql server:

go to your terminal and type 

$ ssh username@host_domainname.com
-(curtis@curtisblackwell.com maybe?)
-(you&#039;ll be asked to add private kerbros key, type &#039;Y&#039;)

-it will ask you for your username again
-then enter your password (invisible input buffer for passwords)

Now you need to know your database username and password
(next line may vary depending on your hosting... it&#039;s easy to find out)

$ mysql -u curtis -p (now press enter to type your password)
(type password)
-now you should be in your mysql command line

//query below drops whole database from server
mysql&gt; DROP DATABASE wordpress (or whatever it&#039;s named); 
//query below creates a new clean database with same name
mysql&gt; Create DATABASE wordpress;
mysql&gt; EXIT

$ exit (to leave your ssh session)

now you have done the same amount of work in 2 queries

I should not have assumed you can read my mind... hope this is useful, you may be better off using phpmyadmin if that is what your hosting wants it&#039;s users to use...</description>
		<content:encoded><![CDATA[<p>I&#8217;m leaving out some details maybe, sorry:</p>
<p>-You need to log into your hosted server first with ssh from the terminal.<br />
-Then log into mysql from inside ssh session and drop the target database, the create a new one of the same name.</p>
<p>The questions you need to ask yourself now are:<br />
-Does my hosting give ssh access?<br />
-Does my hosting give DROP privileges to my user?<br />
-Does my hosting give CREATE privileges to my user?<br />
-do all the tables in my wordpress database have wp_ as a prefix? </p>
<p>If you meet all those requirements, then you can just drop the database real quick in one statement. If you own the server or have a dedicated hosting then you can do that too probably.</p>
<p>I don&#8217;t use WP but I&#8217;ve used elgg which has a similar database scheme and this typically worked for me.</p>
<p>To drop a database from mysql server:</p>
<p>go to your terminal and type </p>
<p>$ ssh username@host_domainname.com<br />
-(curtis@curtisblackwell.com maybe?)<br />
-(you&#8217;ll be asked to add private kerbros key, type &#8216;Y&#8217;)</p>
<p>-it will ask you for your username again<br />
-then enter your password (invisible input buffer for passwords)</p>
<p>Now you need to know your database username and password<br />
(next line may vary depending on your hosting&#8230; it&#8217;s easy to find out)</p>
<p>$ mysql -u curtis -p (now press enter to type your password)<br />
(type password)<br />
-now you should be in your mysql command line</p>
<p>//query below drops whole database from server<br />
mysql&gt; DROP DATABASE wordpress (or whatever it&#8217;s named);<br />
//query below creates a new clean database with same name<br />
mysql&gt; Create DATABASE wordpress;<br />
mysql&gt; EXIT</p>
<p>$ exit (to leave your ssh session)</p>
<p>now you have done the same amount of work in 2 queries</p>
<p>I should not have assumed you can read my mind&#8230; hope this is useful, you may be better off using phpmyadmin if that is what your hosting wants it&#8217;s users to use&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Curtis</title>
		<link>http://curtisblackwell.com/how-to-clear-your-old-database-tables/comment-page-1/#comment-138</link>
		<dc:creator>Curtis</dc:creator>
		<pubDate>Tue, 23 Mar 2010 04:55:33 +0000</pubDate>
		<guid isPermaLink="false">http://curtisblackwell.com/?p=444#comment-138</guid>
		<description>right, sounds easy, and i&#039;m sure i can do it. i&#039;m just sayin&#039; this is now the one thing i can do in the terminal. but i don&#039;t understand how it works or anything.

i take it the brunyon and ***** should be replaced with username and password associated with the db?</description>
		<content:encoded><![CDATA[<p>right, sounds easy, and i&#8217;m sure i can do it. i&#8217;m just sayin&#8217; this is now the one thing i can do in the terminal. but i don&#8217;t understand how it works or anything.</p>
<p>i take it the brunyon and ***** should be replaced with username and password associated with the db?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: brandon runyon</title>
		<link>http://curtisblackwell.com/how-to-clear-your-old-database-tables/comment-page-1/#comment-137</link>
		<dc:creator>brandon runyon</dc:creator>
		<pubDate>Tue, 23 Mar 2010 04:25:16 +0000</pubDate>
		<guid isPermaLink="false">http://curtisblackwell.com/?p=444#comment-137</guid>
		<description>It&#039;s super easy. typing three lines of SQL is just quicker than going through a gui on the web.IMO... give your terminal some love sometime with Secure Shell!</description>
		<content:encoded><![CDATA[<p>It&#8217;s super easy. typing three lines of SQL is just quicker than going through a gui on the web.IMO&#8230; give your terminal some love sometime with Secure Shell!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Curtis</title>
		<link>http://curtisblackwell.com/how-to-clear-your-old-database-tables/comment-page-1/#comment-136</link>
		<dc:creator>Curtis</dc:creator>
		<pubDate>Mon, 22 Mar 2010 21:40:22 +0000</pubDate>
		<guid isPermaLink="false">http://curtisblackwell.com/?p=444#comment-136</guid>
		<description>yeah… i don&#039;t use the terminal for anything (i don&#039;t know how)… but i will for this in the future. thanks, man.</description>
		<content:encoded><![CDATA[<p>yeah… i don&#8217;t use the terminal for anything (i don&#8217;t know how)… but i will for this in the future. thanks, man.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: brandon runyon</title>
		<link>http://curtisblackwell.com/how-to-clear-your-old-database-tables/comment-page-1/#comment-135</link>
		<dc:creator>brandon runyon</dc:creator>
		<pubDate>Mon, 22 Mar 2010 09:03:13 +0000</pubDate>
		<guid isPermaLink="false">http://curtisblackwell.com/?p=444#comment-135</guid>
		<description>it&#039;s way easier from the server side via the terminal with a little SQL:
&lt;pre class=&quot;terminal&quot;&gt;&lt;code&gt;
$ mysql -u brunyon -p *****
(mysql prompt)

mysql&gt; DROP DATABASE _wp;
mysql&gt; CREATE DATABASE _wp;
mysql&gt; EXIT
&lt;/code&gt;&lt;/pre&gt;

YAY all done!

I found the web gui to be a little easier to accidentally drop a table or whole database you didn&#039;t really want to... however your shared hosting might not have shell access (which is lame if true...). Writing a deliberate SQL statment to drop the tables/whole database is a little safer in my humble opinion.</description>
		<content:encoded><![CDATA[<p>it&#8217;s way easier from the server side via the terminal with a little SQL:</p>
<pre class="terminal"><code>
$ mysql -u brunyon -p *****
(mysql prompt)

mysql&gt; DROP DATABASE _wp;
mysql&gt; CREATE DATABASE _wp;
mysql&gt; EXIT
</code></pre>
<p>YAY all done!</p>
<p>I found the web gui to be a little easier to accidentally drop a table or whole database you didn&#8217;t really want to&#8230; however your shared hosting might not have shell access (which is lame if true&#8230;). Writing a deliberate SQL statment to drop the tables/whole database is a little safer in my humble opinion.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
