<?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>Make Tech Easier&#187; database</title>
	<atom:link href="http://maketecheasier.com/tag/database/feed" rel="self" type="application/rss+xml" />
	<link>http://maketecheasier.com</link>
	<description>Uncomplicating the complicated, making life easier</description>
	<lastBuildDate>Sun, 12 Feb 2012 15:58:24 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>How to Schedule Regular Database Backup to Dropbox</title>
		<link>http://maketecheasier.com/schedule-regular-database-backup-to-dropbox/2012/02/01</link>
		<comments>http://maketecheasier.com/schedule-regular-database-backup-to-dropbox/2012/02/01#comments</comments>
		<pubDate>Wed, 01 Feb 2012 23:00:08 +0000</pubDate>
		<dc:creator>Damien</dc:creator>
				<category><![CDATA[Internet]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[cron jobs]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[Dropbox]]></category>

		<guid isPermaLink="false">http://maketecheasier.com/?p=45127</guid>
		<description><![CDATA[Previously, I have shown you how to schedule a database backup using cron job and email yourself the database file, but if you have a big database, you will find that the emailing method might not work as well as you want it to be. A good alternative to this is to upload your database [...]<p><div style="float:left;margin-bottom:10px"><a href="http://api.tweetmeme.com/share?url=http://maketecheasier.com/schedule-regular-database-backup-to-dropbox/2012/02/01&amp;service=bit.ly" target="_blank"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http://maketecheasier.com/schedule-regular-database-backup-to-dropbox/2012/02/01" style="border:none;margin-right:5px" width="51" height="61"></a><a href="http://digg.com/tools/diggthis/login?url=http://maketecheasier.com/schedule-regular-database-backup-to-dropbox/2012/02/01" target="_blank"><img src="http://images.maketecheasier.com/diggme.png" style="border:none;margin-right:5px" ></a><a href="http://www.facebook.com/sharer.php?u=http://maketecheasier.com/schedule-regular-database-backup-to-dropbox/2012/02/01" target="_blank"><img src="http://images.maketecheasier.com/fb.jpg" style="border:none;margin-right:5px" ></a><a href="http://www.google.com/reader/link?url=http://maketecheasier.com/schedule-regular-database-backup-to-dropbox/2012/02/01&amp;title=How+to+Schedule+Regular+Database+Backup+to+Dropbox&amp;srcTitle=MakeTechEasier.com" target="_blank"><img src="http://images.maketecheasier.com/gbuzz-feed.png" style="border:none;margin-right:5px" ></a><a href="http://www.stumbleupon.com/submit?url=http://maketecheasier.com/schedule-regular-database-backup-to-dropbox/2012/02/01" target="_blank"><img src="http://images.maketecheasier.com/stumble.png"></a></div>
<div style="clear:both"></div>
<strong><a href="http://maketecheasier.com/schedule-regular-database-backup-to-dropbox/2012/02/01">How to Schedule Regular Database Backup to Dropbox</a></strong> originally published on <a href="http://maketecheasier.com">Make Tech Easier</a> (<a href="http://feedproxy.google.com/MakeTechEasier">RSS</a>)
<br/>
Follow us at <a href="http://www.facebook.com/MakeTechEasier">Facebook</a> | <a href="http://twitter.com/MakeTechEasier">Twitter</a></p>
]]></description>
			<content:encoded><![CDATA[<p><img src="http://imagecdn.maketecheasier.com/2012/01/backup-db-main.jpg" alt="backup-db-main" title="backup-db-main" class="alignleft size-full wp-image-45144" />Previously, I have shown you how to <a href="http://maketecheasier.com/schedule-database-backup-using-cron-job/2011/07/25" title="How to Schedule Database Backup Using Cron Job">schedule a database backup using cron job and email yourself the database file</a>, but if you have a big database, you will find that the emailing method might not work as well as you want it to be. A good alternative to this is to upload your database to <a href="http://maketecheasier.com/tag/dropbox">Dropbox</a>. Here is a simple script that you can use to backup your database to Dropbox.<br />
<span id="more-45127"></span><br />
1. Download the script <a href="http://dl.dropbox.com/u/6864546/backup.zip">here</a>.</p>
<p>2. Extract the zip file. Open the <em>backup.php</em> with a text editor and edit your database and Dropbox credential.</p>
<p><img src="http://imagecdn.maketecheasier.com/2012/01/backup-db-script.png" alt="backup-db-script" title="backup-db-script" class="aligncenter size-full wp-image-45140" /></p>
<p>Optionally, you can create a backup folder in your Dropbox and insert the name of the folder to the backup.php. Your database will then be backed up to this folder. </p>
<p>3. Save and close the file. Upload the whole backup folder to your server. Note the uploaded location relative to the server root.</p>
<p>4. If you are using cPanel for your web hosting, log into it and go to the cron job section. </p>
<p><img alt="cron-cpanel" src="http://imagecdn.maketecheasier.com/2011/07/cron-cpanel.png" title="cron-cpanel" class="aligncenter" width="528" height="186" /></p>
<p>5. Create a new cron job. You can set the time and frequency to backup the database. Under the command field, copy and paste the following command:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>php <span style="color: #660033;">-q</span> <span style="color: #000000; font-weight: bold;">/</span>path-to-backup-folder<span style="color: #000000; font-weight: bold;">/</span>backup<span style="color: #000000; font-weight: bold;">/</span>backup.php</pre></div></div>

<p>Change the &#8220;path-to-backup-folder&#8221; to the location (relative to the server root) where you upload the backup folder.</p>
<p>6. Save the cron job. </p>
<p>That&#8217;s it. Now, your server will backup your database and upload it to your Dropbox account. </p>
<p><strong>Note</strong>: This is a generic method for backing up any database on a Linux server. However, if you are using WordPress, there are plugins that you can use to back up your database to Dropbox. One thing to note: if you have a big database, using the plugin to backup your database will use a lot of system resources and and might slow down (or even crash) your WordPress site if your server is not up to par.</p>
<p>Image credit: <a href="http://www.bigstockphoto.com/image-27134456/stock-photo-backup-word-on-white-keyboard" title="Backup word on white keyboard" target="_blank">Backup word on white keyboard</a> by Big Stock Photo.  </p>
<p><div style="float:left;margin-bottom:10px"><a href="http://api.tweetmeme.com/share?url=http://maketecheasier.com/schedule-regular-database-backup-to-dropbox/2012/02/01&amp;service=bit.ly" target="_blank"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http://maketecheasier.com/schedule-regular-database-backup-to-dropbox/2012/02/01" style="border:none;margin-right:5px" width="51" height="61"></a><a href="http://digg.com/tools/diggthis/login?url=http://maketecheasier.com/schedule-regular-database-backup-to-dropbox/2012/02/01" target="_blank"><img src="http://images.maketecheasier.com/diggme.png" style="border:none;margin-right:5px" ></a><a href="http://www.facebook.com/sharer.php?u=http://maketecheasier.com/schedule-regular-database-backup-to-dropbox/2012/02/01" target="_blank"><img src="http://images.maketecheasier.com/fb.jpg" style="border:none;margin-right:5px" ></a><a href="http://www.google.com/reader/link?url=http://maketecheasier.com/schedule-regular-database-backup-to-dropbox/2012/02/01&amp;title=How+to+Schedule+Regular+Database+Backup+to+Dropbox&amp;srcTitle=MakeTechEasier.com" target="_blank"><img src="http://images.maketecheasier.com/gbuzz-feed.png" style="border:none;margin-right:5px" ></a><a href="http://www.stumbleupon.com/submit?url=http://maketecheasier.com/schedule-regular-database-backup-to-dropbox/2012/02/01" target="_blank"><img src="http://images.maketecheasier.com/stumble.png"></a></div>
<div style="clear:both"></div>
<strong><a href="http://maketecheasier.com/schedule-regular-database-backup-to-dropbox/2012/02/01">How to Schedule Regular Database Backup to Dropbox</a></strong> originally published on <a href="http://maketecheasier.com">Make Tech Easier</a> (<a href="http://feedproxy.google.com/MakeTechEasier">RSS</a>)
<br/>
Follow us at <a href="http://www.facebook.com/MakeTechEasier">Facebook</a> | <a href="http://twitter.com/MakeTechEasier">Twitter</a></p>
]]></content:encoded>
			<wfw:commentRss>http://maketecheasier.com/schedule-regular-database-backup-to-dropbox/2012/02/01/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>How to Schedule Database Backup Using Cron Job</title>
		<link>http://maketecheasier.com/schedule-database-backup-using-cron-job/2011/07/25</link>
		<comments>http://maketecheasier.com/schedule-database-backup-using-cron-job/2011/07/25#comments</comments>
		<pubDate>Mon, 25 Jul 2011 14:58:38 +0000</pubDate>
		<dc:creator>Damien</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[cron jobs]]></category>
		<category><![CDATA[database]]></category>

		<guid isPermaLink="false">http://maketecheasier.com/?p=35686</guid>
		<description><![CDATA[For backing up of your WordPress database, there are plenty of plugins around that can get the job done. Some of them backup only your database while others backup the whole WP directory. If you have used WordPress long enough, you will realize that these plugins are not reliable. They will work one day and [...]<p><div style="float:left;margin-bottom:10px"><a href="http://api.tweetmeme.com/share?url=http://maketecheasier.com/schedule-database-backup-using-cron-job/2011/07/25&amp;service=bit.ly" target="_blank"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http://maketecheasier.com/schedule-database-backup-using-cron-job/2011/07/25" style="border:none;margin-right:5px" width="51" height="61"></a><a href="http://digg.com/tools/diggthis/login?url=http://maketecheasier.com/schedule-database-backup-using-cron-job/2011/07/25" target="_blank"><img src="http://images.maketecheasier.com/diggme.png" style="border:none;margin-right:5px" ></a><a href="http://www.facebook.com/sharer.php?u=http://maketecheasier.com/schedule-database-backup-using-cron-job/2011/07/25" target="_blank"><img src="http://images.maketecheasier.com/fb.jpg" style="border:none;margin-right:5px" ></a><a href="http://www.google.com/reader/link?url=http://maketecheasier.com/schedule-database-backup-using-cron-job/2011/07/25&amp;title=How+to+Schedule+Database+Backup+Using+Cron+Job&amp;srcTitle=MakeTechEasier.com" target="_blank"><img src="http://images.maketecheasier.com/gbuzz-feed.png" style="border:none;margin-right:5px" ></a><a href="http://www.stumbleupon.com/submit?url=http://maketecheasier.com/schedule-database-backup-using-cron-job/2011/07/25" target="_blank"><img src="http://images.maketecheasier.com/stumble.png"></a></div>
<div style="clear:both"></div>
<strong><a href="http://maketecheasier.com/schedule-database-backup-using-cron-job/2011/07/25">How to Schedule Database Backup Using Cron Job</a></strong> originally published on <a href="http://maketecheasier.com">Make Tech Easier</a> (<a href="http://feedproxy.google.com/MakeTechEasier">RSS</a>)
<br/>
Follow us at <a href="http://www.facebook.com/MakeTechEasier">Facebook</a> | <a href="http://twitter.com/MakeTechEasier">Twitter</a></p>
]]></description>
			<content:encoded><![CDATA[<p><img src="http://imagecdn.maketecheasier.com/2011/07/backup-key.jpg" alt="backup-key" title="backup-key" width="200" height="151" class="alignleft size-full wp-image-35816" />For backing up of your WordPress database, there are plenty of plugins around that can get the job done. Some of them backup only your database while others backup the whole WP directory. If you have used WordPress long enough, you will realize that these plugins are not reliable. They will work one day and fail another day, for thousand and one reasons. It could be that they are not compatible with the new WordPress version that you have upgraded to, or that they are conflicting with a newly activated plugin. As in my case, it could also because your database is getting too big for them to handle. </p>
<p>Whatever the reasons, rather than relying on plugins, a better alternative is to use a cron job in your server and schedule it to backup your database everyday.<br />
<span id="more-35686"></span><br />
<strong>Note</strong>: <em>The following instruction can be used to backup any database. The only requirement is that you are using a Linux server to host your files.</em></p>
<p>Here is how you do it:</p>
<p>1. Login to your web host control panel. If you are using cPanel, look for a Cron Job icon.</p>
<p><img src="http://imagecdn.maketecheasier.com/2011/07/cron-cpanel.png" alt="cron-cpanel" title="cron-cpanel" width="528" height="186" class="aligncenter size-full wp-image-35808" /></p>
<p>2. You can set the time and frequency to backup the database. Under the command field, copy and paste the following command:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">mysqldump <span style="color: #660033;">--opt</span> <span style="color: #660033;">-Q</span> <span style="color: #660033;">-u</span> dbusername <span style="color: #660033;">--password</span>=dbpassword dbname <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">gzip</span> <span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #000000; font-weight: bold;">/</span>path-to-store-the-backup-file<span style="color: #000000; font-weight: bold;">/</span>db_backup.sql.gz</pre></div></div>

<ul>
<li>Replace <em>dbusername</em> with the database user</li>
<li>Replace <em>dbpassword</em> with the database user password</li>
<li>Replace <em>dbname</em> with the database that you are backing up</li>
<li>Replace the <em>path-to-store-the-backup-file</em> to the file path in your server where you want to save the backup</li>
</ul>
<p><strong>Note</strong>: <em>In some server, you might need to put a pair of single quote around the dbpassword for it to work. For example: </em></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">mysqldump <span style="color: #660033;">--opt</span> <span style="color: #660033;">-Q</span> <span style="color: #660033;">-u</span> dbusername <span style="color: #660033;">--password</span>=<span style="color: #ff0000;">'dbpassword'</span> dbname <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">gzip</span> <span style="color: #000000; font-weight: bold;">&gt;</span> <span style="color: #000000; font-weight: bold;">/</span>path-to-store-the-backup-file<span style="color: #000000; font-weight: bold;">/</span>db_backup.sql.gz</pre></div></div>

<h2>Email yourself the database</h2>
<p>Storing the database on your server could take up plenty of storage space. One way you can do is to email the backup file to yourself. </p>
<p>1. Download <a href="http://mte.gs/qQm2lT">this php script</a>.</p>
<p>2. Extract the zip file and open the backup.php with a text editor. </p>
<p>3. Change the database detail:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$dbhost</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;localhost&quot;</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">// usually localhost</span>
<span style="color: #000088;">$dbuser</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;dbuser&quot;</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">//enter your database username here</span>
<span style="color: #000088;">$dbpass</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;dbpass&quot;</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">//enter your database password here</span>
<span style="color: #000088;">$dbname</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;dbname&quot;</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">// enter your database name here</span>
<span style="color: #000088;">$sendto</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;Send To &lt;sendto@email.com&gt;&quot;</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">//the email address to send the database to</span>
<span style="color: #000088;">$sendfrom</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;Send From &lt;sendfrom@email.com&gt;&quot;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$sendsubject</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;Daily Database Backup&quot;</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">//the subject of the email</span>
<span style="color: #000088;">$bodyofemail</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">&quot;Here is the daily backup of my database.&quot;</span><span style="color: #339933;">;</span></pre></div></div>

<p>4. Save the file. Upload the whole folder to your server. <strong>Note</strong>: <em>The folder includes a .htaccess file to prevent any access from the browser. If you want to access from the browser, remove the .htaccess file.</em></p>
<p>5. In the cron job section of the cPanel, enter the following command:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">php <span style="color: #660033;">-q</span> <span style="color: #000000; font-weight: bold;">/</span>path-to-the-php-script-folder<span style="color: #000000; font-weight: bold;">/</span>backup.php</pre></div></div>

<p>That&#8217;s it. </p>
<p><div style="float:left;margin-bottom:10px"><a href="http://api.tweetmeme.com/share?url=http://maketecheasier.com/schedule-database-backup-using-cron-job/2011/07/25&amp;service=bit.ly" target="_blank"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http://maketecheasier.com/schedule-database-backup-using-cron-job/2011/07/25" style="border:none;margin-right:5px" width="51" height="61"></a><a href="http://digg.com/tools/diggthis/login?url=http://maketecheasier.com/schedule-database-backup-using-cron-job/2011/07/25" target="_blank"><img src="http://images.maketecheasier.com/diggme.png" style="border:none;margin-right:5px" ></a><a href="http://www.facebook.com/sharer.php?u=http://maketecheasier.com/schedule-database-backup-using-cron-job/2011/07/25" target="_blank"><img src="http://images.maketecheasier.com/fb.jpg" style="border:none;margin-right:5px" ></a><a href="http://www.google.com/reader/link?url=http://maketecheasier.com/schedule-database-backup-using-cron-job/2011/07/25&amp;title=How+to+Schedule+Database+Backup+Using+Cron+Job&amp;srcTitle=MakeTechEasier.com" target="_blank"><img src="http://images.maketecheasier.com/gbuzz-feed.png" style="border:none;margin-right:5px" ></a><a href="http://www.stumbleupon.com/submit?url=http://maketecheasier.com/schedule-database-backup-using-cron-job/2011/07/25" target="_blank"><img src="http://images.maketecheasier.com/stumble.png"></a></div>
<div style="clear:both"></div>
<strong><a href="http://maketecheasier.com/schedule-database-backup-using-cron-job/2011/07/25">How to Schedule Database Backup Using Cron Job</a></strong> originally published on <a href="http://maketecheasier.com">Make Tech Easier</a> (<a href="http://feedproxy.google.com/MakeTechEasier">RSS</a>)
<br/>
Follow us at <a href="http://www.facebook.com/MakeTechEasier">Facebook</a> | <a href="http://twitter.com/MakeTechEasier">Twitter</a></p>
]]></content:encoded>
			<wfw:commentRss>http://maketecheasier.com/schedule-database-backup-using-cron-job/2011/07/25/feed</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>OpenOffice Base &#8211; A Simple And Useful Database Management Tool</title>
		<link>http://maketecheasier.com/openoffice-base-useful-database-management-tool/2010/08/17</link>
		<comments>http://maketecheasier.com/openoffice-base-useful-database-management-tool/2010/08/17#comments</comments>
		<pubDate>Tue, 17 Aug 2010 12:00:44 +0000</pubDate>
		<dc:creator>Joshua Price</dc:creator>
				<category><![CDATA[OpenOffice]]></category>
		<category><![CDATA[base]]></category>
		<category><![CDATA[database]]></category>

		<guid isPermaLink="false">http://maketecheasier.com/?p=19755</guid>
		<description><![CDATA[When most people think OpenOffice, they think of word processing or spreadsheets. What many people do not realize is that OpenOffice also includes Base, a database system roughly equivalent to MS Access. Many businesses and individuals use these systems to allow even non-technical people to enter, store, retrieve and organize their data. Using Base, you [...]<p><div style="float:left;margin-bottom:10px"><a href="http://api.tweetmeme.com/share?url=http://maketecheasier.com/openoffice-base-useful-database-management-tool/2010/08/17&amp;service=bit.ly" target="_blank"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http://maketecheasier.com/openoffice-base-useful-database-management-tool/2010/08/17" style="border:none;margin-right:5px" width="51" height="61"></a><a href="http://digg.com/tools/diggthis/login?url=http://maketecheasier.com/openoffice-base-useful-database-management-tool/2010/08/17" target="_blank"><img src="http://images.maketecheasier.com/diggme.png" style="border:none;margin-right:5px" ></a><a href="http://www.facebook.com/sharer.php?u=http://maketecheasier.com/openoffice-base-useful-database-management-tool/2010/08/17" target="_blank"><img src="http://images.maketecheasier.com/fb.jpg" style="border:none;margin-right:5px" ></a><a href="http://www.google.com/reader/link?url=http://maketecheasier.com/openoffice-base-useful-database-management-tool/2010/08/17&amp;title=OpenOffice+Base+%26%238211%3B+A+Simple+And+Useful+Database+Management+Tool&amp;srcTitle=MakeTechEasier.com" target="_blank"><img src="http://images.maketecheasier.com/gbuzz-feed.png" style="border:none;margin-right:5px" ></a><a href="http://www.stumbleupon.com/submit?url=http://maketecheasier.com/openoffice-base-useful-database-management-tool/2010/08/17" target="_blank"><img src="http://images.maketecheasier.com/stumble.png"></a></div>
<div style="clear:both"></div>
<strong><a href="http://maketecheasier.com/openoffice-base-useful-database-management-tool/2010/08/17">OpenOffice Base &#8211; A Simple And Useful Database Management Tool</a></strong> originally published on <a href="http://maketecheasier.com">Make Tech Easier</a> (<a href="http://feedproxy.google.com/MakeTechEasier">RSS</a>)
<br/>
Follow us at <a href="http://www.facebook.com/MakeTechEasier">Facebook</a> | <a href="http://twitter.com/MakeTechEasier">Twitter</a></p>
]]></description>
			<content:encoded><![CDATA[<p><img src="http://imagecdn.maketecheasier.com/2010/08/oobase-icon.png" alt="oobase-icon" title="oobase-icon" width="128" height="128" class="alignleft size-full wp-image-19756" />When most people think OpenOffice, they think of word processing or spreadsheets. What many people do not realize is that OpenOffice also includes Base, a database system roughly equivalent to MS Access. Many businesses and individuals use these systems to allow even non-technical people to enter, store, retrieve and organize their data. Using Base, you can follow simple steps to create an easy, user-friendly way for people to store and retrieve information using custom-designed forms and reports.<br />
<span id="more-19755"></span></p>
<h3>Getting Base</h3>
<p>Base is part of the OpenOffice package, and packages for all platforms can be downloaded <a href="http://download.openoffice.org/other.html" target="_blank">here</a>. Linux users likely won&#8217;t need the manual download, as the full OpenOffice suite is typically available in the standard repositories of most distros.  Ubuntu users, for example, could install with<br />
<pre lang="bash">sudo apt-get install openoffice.org-base</pre><br />
or simply click the <a href="apt:openoffice.org-base">link here</a></p>
<h3>Creating Your Database</h3>
<p>When you launch Base, you&#8217;ll be taken to a &#8220;wizard&#8221; which can guide you through the first few steps. While many such wizards often get in the way, the wizard for Base is well constructed and can make the initial steps much simpler than going alone, especially if you don&#8217;t have much familiarity with database software.  </p>
<p><img src="http://imagecdn.maketecheasier.com/2010/08/oobase-createdb.png" alt="oobase-createdb" title="oobase-createdb" width="577" height="345" class="aligncenter size-full wp-image-19757" /></p>
<p>For the purposes of this guide, we&#8217;ll be using the wizard to create a database containing sample employee information, then building a form to manipulate that database.  </p>
<p>On the next step, you may be asked to register your database with OpenOffice. This is not a requirement, it&#8217;s only relevant if you plan to integrate this database with other OO products.  </p>
<p><img src="http://imagecdn.maketecheasier.com/2010/08/oobase-create2.png" alt="oobase-create2" title="oobase-create2" width="577" height="259" class="aligncenter size-full wp-image-19784" /></p>
<p>Before proceeding, it&#8217;s recommended that you check the box for &#8220;<em>Create Tables Using the Table Wizard</em>&#8220;, especially if you&#8217;re new to database design.  </p>
<h3>Creating Tables</h3>
<p>The previous step should have finished by saving your new database to a file. If you checked the box for the Table wizard, you should now be brought to a screen where you can begin laying out the information that your database will contain.  </p>
<p><img src="http://imagecdn.maketecheasier.com/2010/08/oobase-table1.png" alt="oobase-table1" title="oobase-table1" width="576" height="338" class="aligncenter size-full wp-image-19760" /></p>
<p>As stated earlier, we&#8217;re creating a sample database containing employee information for a fictional company. The radio buttons and dropdown menus on the wizard screen will allow you to choose from some pre-existing example fields. Here we&#8217;ve chosen a small subset of the possible employee-related fields offered by Base.  </p>
<p>Database design is far too large a subject to cover here in detail, so we&#8217;ll just mention a few basics and leave some links at the bottom of this page for more detail. For starters, each table should represent only one idea &#8211; ie the Employee table should not contain shipping information. If you find yourself putting anything into a table that does not match with the title of that table (like Employee or Billing), it probably belongs in a different table.    </p>
<p>Secondly, it&#8217;s important for tables to have a <em>primary key</em>. In short, this means that tables should generally have a column where each row in that column is unique on that table. That may sound confusing, but it typically just means that you need a column like EmployeeID, and each entry has a different, unique number. There&#8217;s (probably) no chance of two employees having the same ID number, so it makes a perfect primary key.  </p>
<p>On the second page of the Table Design wizard, you specify what type of data will go into that field. A number like EmployeeID makes sense as an integer, and text fields like first and last name should be text (CHAR or VARCHAR). If you chose the fields from the dropdown menus in the wizard, these types should be automatically applied to the right fields.  </p>
<p><img src="http://imagecdn.maketecheasier.com/2010/08/oobase-table2.png" alt="oobase-table2" title="oobase-table2" width="577" height="275" class="aligncenter size-full wp-image-19776" /></p>
<p>If it&#8217;s essential that a record contain a certain field (in our example, and employee MUST have an ID number) make sure to set <em>Entry Required</em> to <em>True</em> for that field, as in the screenshot above. This can make sure that all new entries, regardless of who did it, must follow the rules of your database.  </p>
<p>On the next page, you&#8217;ll be asked to set a primary key. As mentioned above, it&#8217;s generally a good idea to have one column in your table set as the primary key. Remember that for it to work as the primary key, each field in that column must be unique to that table. If you&#8217;re following the examples, you&#8217;d use EmployeeID as the key, since you can reliably assume that every user will have a different one.  </p>
<p><img src="http://imagecdn.maketecheasier.com/2010/08/oobase-primarykey.png" alt="oobase-primarykey" title="oobase-primarykey" width="577" height="333" class="aligncenter size-full wp-image-19780" /></p>
<p>Once you&#8217;ve named your table, you&#8217;re done setting up your database and tables. Before continuing, you have the option of remaining in the wizard to create your first form, which is what we&#8217;ll be doing for this guide.</p>
<h3>Creating Forms</h3>
<p>Any database can store information, but tools like Base and Access go a step further and allow you to create the interface for viewing and manipulating your data. If you&#8217;ve continued with the wizard, you are now at a place where you can build those forms.  </p>
<p><img src="http://imagecdn.maketecheasier.com/2010/08/oobase-form1.png" alt="oobase-form1" title="oobase-form1" width="538" height="314" class="aligncenter size-full wp-image-19781" /></p>
<p>A <em>form</em> in Base terms is somewhat like a web page &#8211; it&#8217;s a visual place to view, enter, and manage the information in your tables. Your form can be laid out however you choose and display only the information you select. This example builds a form from the <em>ID</em>, <em>Name</em>, and <em>Title</em> fields.  </p>
<p>Most of the Form wizard options are not critical and can be safely ignored, however make sure to check the layout section and Step 6 in the wizard to decide if you want the form to be read-only.  </p>
<p><img src="http://imagecdn.maketecheasier.com/2010/08/oobase-formdone.png" alt="oobase-formdone" title="oobase-formdone" width="546" height="234" class="aligncenter size-full wp-image-19785" /></p>
<h3>Conclusion</h3>
<p>Now that you know how to create a database, create and edit tables, and the basics of forms, you&#8217;re in a position to use Base as a foundation for some amazingly useful applications. Software like Base is in use by countless organizations, large and small, because it allows you to gain many of the benefits of a custom-written database application without having to actually custom write a database application. If you&#8217;ve had experiences with Base, or similar software, let us know in the comments.<br />
<!--adsense#468x60--></p>
<p><div style="float:left;margin-bottom:10px"><a href="http://api.tweetmeme.com/share?url=http://maketecheasier.com/openoffice-base-useful-database-management-tool/2010/08/17&amp;service=bit.ly" target="_blank"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http://maketecheasier.com/openoffice-base-useful-database-management-tool/2010/08/17" style="border:none;margin-right:5px" width="51" height="61"></a><a href="http://digg.com/tools/diggthis/login?url=http://maketecheasier.com/openoffice-base-useful-database-management-tool/2010/08/17" target="_blank"><img src="http://images.maketecheasier.com/diggme.png" style="border:none;margin-right:5px" ></a><a href="http://www.facebook.com/sharer.php?u=http://maketecheasier.com/openoffice-base-useful-database-management-tool/2010/08/17" target="_blank"><img src="http://images.maketecheasier.com/fb.jpg" style="border:none;margin-right:5px" ></a><a href="http://www.google.com/reader/link?url=http://maketecheasier.com/openoffice-base-useful-database-management-tool/2010/08/17&amp;title=OpenOffice+Base+%26%238211%3B+A+Simple+And+Useful+Database+Management+Tool&amp;srcTitle=MakeTechEasier.com" target="_blank"><img src="http://images.maketecheasier.com/gbuzz-feed.png" style="border:none;margin-right:5px" ></a><a href="http://www.stumbleupon.com/submit?url=http://maketecheasier.com/openoffice-base-useful-database-management-tool/2010/08/17" target="_blank"><img src="http://images.maketecheasier.com/stumble.png"></a></div>
<div style="clear:both"></div>
<strong><a href="http://maketecheasier.com/openoffice-base-useful-database-management-tool/2010/08/17">OpenOffice Base &#8211; A Simple And Useful Database Management Tool</a></strong> originally published on <a href="http://maketecheasier.com">Make Tech Easier</a> (<a href="http://feedproxy.google.com/MakeTechEasier">RSS</a>)
<br/>
Follow us at <a href="http://www.facebook.com/MakeTechEasier">Facebook</a> | <a href="http://twitter.com/MakeTechEasier">Twitter</a></p>
]]></content:encoded>
			<wfw:commentRss>http://maketecheasier.com/openoffice-base-useful-database-management-tool/2010/08/17/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>How to Clone Your Live WordPress Blog to a Local Server</title>
		<link>http://maketecheasier.com/clone-your-live-wordpress-blog-to-a-local-server/2010/06/04</link>
		<comments>http://maketecheasier.com/clone-your-live-wordpress-blog-to-a-local-server/2010/06/04#comments</comments>
		<pubDate>Fri, 04 Jun 2010 21:00:56 +0000</pubDate>
		<dc:creator>Damien</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[clone]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[server]]></category>

		<guid isPermaLink="false">http://maketecheasier.com/?p=16558</guid>
		<description><![CDATA[Bloggers, have you ever been in the situation where you want to make changes to your site (such as changing of theme, installing new plugins etc), but afraid that it will break your site? A lot of time, we wish to implement some changes and see how it looks like on the live site, without [...]<p><div style="float:left;margin-bottom:10px"><a href="http://api.tweetmeme.com/share?url=http://maketecheasier.com/clone-your-live-wordpress-blog-to-a-local-server/2010/06/04&amp;service=bit.ly" target="_blank"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http://maketecheasier.com/clone-your-live-wordpress-blog-to-a-local-server/2010/06/04" style="border:none;margin-right:5px" width="51" height="61"></a><a href="http://digg.com/tools/diggthis/login?url=http://maketecheasier.com/clone-your-live-wordpress-blog-to-a-local-server/2010/06/04" target="_blank"><img src="http://images.maketecheasier.com/diggme.png" style="border:none;margin-right:5px" ></a><a href="http://www.facebook.com/sharer.php?u=http://maketecheasier.com/clone-your-live-wordpress-blog-to-a-local-server/2010/06/04" target="_blank"><img src="http://images.maketecheasier.com/fb.jpg" style="border:none;margin-right:5px" ></a><a href="http://www.google.com/reader/link?url=http://maketecheasier.com/clone-your-live-wordpress-blog-to-a-local-server/2010/06/04&amp;title=How+to+Clone+Your+Live+WordPress+Blog+to+a+Local+Server&amp;srcTitle=MakeTechEasier.com" target="_blank"><img src="http://images.maketecheasier.com/gbuzz-feed.png" style="border:none;margin-right:5px" ></a><a href="http://www.stumbleupon.com/submit?url=http://maketecheasier.com/clone-your-live-wordpress-blog-to-a-local-server/2010/06/04" target="_blank"><img src="http://images.maketecheasier.com/stumble.png"></a></div>
<div style="clear:both"></div>
<strong><a href="http://maketecheasier.com/clone-your-live-wordpress-blog-to-a-local-server/2010/06/04">How to Clone Your Live WordPress Blog to a Local Server</a></strong> originally published on <a href="http://maketecheasier.com">Make Tech Easier</a> (<a href="http://feedproxy.google.com/MakeTechEasier">RSS</a>)
<br/>
Follow us at <a href="http://www.facebook.com/MakeTechEasier">Facebook</a> | <a href="http://twitter.com/MakeTechEasier">Twitter</a></p>
]]></description>
			<content:encoded><![CDATA[<p><img src="http://imagecdn.maketecheasier.com/2010/06/clonewp-main.jpg" alt="clonewp-main" title="clonewp-main" width="200" height="150" class="alignleft size-full wp-image-16592" />Bloggers, have you ever been in the situation where you want to make changes to your site (such as changing of theme, installing new plugins etc), but afraid that it will break your site? A lot of time, we wish to implement some changes and see how it looks like on the live site, without actually making it live. In such cases, the best solution is to create a local server (aka test server) and clone your live site to the local server. In this way, you can first test out the changes on your local server and make it live only when you have confirmed everything is working well.<br />
<span id="more-16558"></span><br />
What you will need:</p>
<ul>
<li>a local server application (we recommend <a href="http://www.apachefriends.org/en/xampp.html" target="_blank">XAMPP</a> since it is the easiest to use and it works for all platforms)</li>
<li>a copy of the WordPress software (download it from <a href="http://wordpress.org" target="_blank">WordPress.org</a></li>
<li>a copy of your existing WP blog database</li>
<li>a FTP program (We will be using Filezilla, but you are free to use your favorite application)</li>
</ul>
<p>Let&#8217;s get started.</p>
<h3>Installing WordPress in your local server</h3>
<p>I won&#8217;t go into much detail here since we have previously written plenty of articles on this. Check them out:</p>
<p><a href="http://maketecheasier.com/install-wordpress-mu-in-windows-localhost-with-xampp/2009/05/02">How To Install WordPress MU In Windows Localhost (With XAMPP)</a></p>
<p><a href="http://maketecheasier.com/setup-a-phpmysql-environment-on-windows-the-easy-way/2009/12/31">Setup a PHP/MySQL Environment on Windows The Easy Way</a></p>
<p><a href="http://maketecheasier.com/install-and-test-wordpress-on-your-local-computer-mac/2009/11/10">How to Install and Test WordPress on Your Mac</a></p>
<p><strong>Note</strong>: <em>Resume this tutorial only after you have installed WordPress in your local server.</em></p>
<h3>Backing up your live WP blog</h3>
<p>You will need to get a backup copy of the database of your live WP blog. This can be achieved in two ways: plugin or phpMyAdmin.</p>
<p><strong>Plugin</strong><br />
There are several plugins that can backup your database. My favorite is <a href="http://wordpress.org/extend/plugins/wp-db-backup/" target="_blank">WP-db-backup plugin</a>. You can also use <a href="http://wordpress.org/extend/plugins/wp-dbmanager/" target="_blank">WP-DBManager plugin</a>.</p>
<p>Install the WP-DB-backup plugin and go to <em>Tools -> Backup</em> in your WordPress dashboard. </p>
<p>Check all the tables name.</p>
<p><img src="http://imagecdn.maketecheasier.com/2010/06/clonewp-backup-database.png" alt="clonewp-backup-database" title="clonewp-backup-database" width="577" height="302" class="aligncenter size-full wp-image-16561" /></p>
<p>Select <em>&#8220;Download to computer&#8221;</em> and click <em>&#8220;Backup now!&#8221;</em>. </p>
<p><img src="http://imagecdn.maketecheasier.com/2010/06/clonewp-download-database.png" alt="clonewp-download-database" title="clonewp-download-database" width="347" height="255" class="aligncenter size-full wp-image-16562" /></p>
<p>The backup process will begin and it will prompt you to download the sql file when it is done. </p>
<p><strong>phpMyAdmin</strong><br />
Login to your web host cPanel and click on the phpMyAdmin icon.</p>
<p><img src="http://imagecdn.maketecheasier.com/2010/06/clonewp-phpmyadmin.png" alt="clonewp-phpmyadmin" title="clonewp-phpmyadmin" width="354" height="120" class="aligncenter size-full wp-image-16586" /></p>
<p>In the left pane, click on your WP blog database.</p>
<p><img src="http://imagecdn.maketecheasier.com/2010/06/clonewp-phpmyadmin-db.png" alt="clonewp-phpmyadmin-db" title="clonewp-phpmyadmin-db" width="195" height="282" class="aligncenter size-full wp-image-16587" /></p>
<p>Click the<em> Export</em> button.</p>
<p><img src="http://imagecdn.maketecheasier.com/2010/06/clonewp-phpmyadmin-export1.png" alt="clonewp-phpmyadmin-export" title="clonewp-phpmyadmin-export" width="530" height="77" class="aligncenter size-full wp-image-16589" /></p>
<p>Scroll down to the bottom of the page. Check the box &#8220;<em>Save as file</em>&#8220;. Also check &#8220;gzipped&#8221;. Click Go.</p>
<p><img src="http://imagecdn.maketecheasier.com/2010/06/clonewp-phpmyadmin-savefile.png" alt="clonewp-phpmyadmin-savefile" title="clonewp-phpmyadmin-savefile" width="543" height="123" class="aligncenter size-full wp-image-16590" /></p>
<h3>Restoring the database in your local server</h3>
<p>Start your local server. Open a browser and go to <em>&#8220;http://localhost/phpmyadmin&#8221;</em>. Create a new database. </p>
<p><img src="http://imagecdn.maketecheasier.com/2010/06/clonewp-create-new-db.png" alt="clonewp-create-new-db" title="clonewp-create-new-db" width="512" height="183" class="aligncenter size-full wp-image-16568" /></p>
<p>Next, click on the &#8220;<em>Import</em>&#8221; button.</p>
<p><img src="http://imagecdn.maketecheasier.com/2010/06/clonewp-import.png" alt="phpmyadmin import button" title="clonewp-import" width="577" height="64" class="aligncenter size-full wp-image-16572" /></p>
<p>Navigate to the location where you save the database file. Click Go.</p>
<p><img src="http://imagecdn.maketecheasier.com/2010/06/clonewp-import-file.png" alt="clonewp-import-file" title="clonewp-import-file" width="577" height="499" class="aligncenter size-full wp-image-16573" /></p>
<p>This will import your WordPress database to your local server. If your database file is more than 2MB, you might need to increase the <em>&#8220;upload_file_limit&#8221;</em> variable in the php.ini file.</p>
<h3>Configure the wp-config file</h3>
<p>In your file manager, go to the WordPress folder within the htdocs folder. Open your <em>wp-config.php</em> file in a text editor and change the following:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">//unless you have changed the setting, else the default will be as follow</span>
<span style="color: #990000;">define</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'DB_NAME'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'wordpress'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">//change this to the name of the database you have created earlier</span>
<span style="color: #990000;">define</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'DB_USER'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'root'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> 
<span style="color: #990000;">define</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'DB_PASSWORD'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">''</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">//no password by default. Change this if you have added password during installation</span>
<span style="color: #990000;">define</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'DB_HOST'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'localhost'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">//99% you won't have to change this</span></pre></div></div>

<p>You need to add in another 2 lines:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">define<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #ff0000;">'WP_HOME'</span>,<span style="color: #ff0000;">'http://localhost/wordpress'</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>;
define<span style="color: #7a0874; font-weight: bold;">&#40;</span><span style="color: #ff0000;">'WP_SITEURL'</span>,<span style="color: #ff0000;">'http://localhost/wordpress'</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>;</pre></div></div>

<p>That&#8217;s it. You have successfully cloned your live WP blog to your local server. You can login to your dashboard via the link <em>&#8220;http://localhost/wordpress/wp-login.php&#8221;</em> and make changes to your test site. </p>
<p><strong>Note</strong>: </p>
<ol>
<li>To make the permalink work properly, you will need to regenerate the permalink structure in the Permalink setting page and edit the .htaccess file)</li>
<li>For better compatibility, you might want to replace your <em>wp-content</em> folder in the local server with the one in the live site.</li>
</ol>
<p>Image credit: <a href="http://www.flickr.com/photos/thatcanadiangirl/" target="_blank">thatcanadiangirl</a><br />
<!--adsense#468x60--></p>
<p><div style="float:left;margin-bottom:10px"><a href="http://api.tweetmeme.com/share?url=http://maketecheasier.com/clone-your-live-wordpress-blog-to-a-local-server/2010/06/04&amp;service=bit.ly" target="_blank"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http://maketecheasier.com/clone-your-live-wordpress-blog-to-a-local-server/2010/06/04" style="border:none;margin-right:5px" width="51" height="61"></a><a href="http://digg.com/tools/diggthis/login?url=http://maketecheasier.com/clone-your-live-wordpress-blog-to-a-local-server/2010/06/04" target="_blank"><img src="http://images.maketecheasier.com/diggme.png" style="border:none;margin-right:5px" ></a><a href="http://www.facebook.com/sharer.php?u=http://maketecheasier.com/clone-your-live-wordpress-blog-to-a-local-server/2010/06/04" target="_blank"><img src="http://images.maketecheasier.com/fb.jpg" style="border:none;margin-right:5px" ></a><a href="http://www.google.com/reader/link?url=http://maketecheasier.com/clone-your-live-wordpress-blog-to-a-local-server/2010/06/04&amp;title=How+to+Clone+Your+Live+WordPress+Blog+to+a+Local+Server&amp;srcTitle=MakeTechEasier.com" target="_blank"><img src="http://images.maketecheasier.com/gbuzz-feed.png" style="border:none;margin-right:5px" ></a><a href="http://www.stumbleupon.com/submit?url=http://maketecheasier.com/clone-your-live-wordpress-blog-to-a-local-server/2010/06/04" target="_blank"><img src="http://images.maketecheasier.com/stumble.png"></a></div>
<div style="clear:both"></div>
<strong><a href="http://maketecheasier.com/clone-your-live-wordpress-blog-to-a-local-server/2010/06/04">How to Clone Your Live WordPress Blog to a Local Server</a></strong> originally published on <a href="http://maketecheasier.com">Make Tech Easier</a> (<a href="http://feedproxy.google.com/MakeTechEasier">RSS</a>)
<br/>
Follow us at <a href="http://www.facebook.com/MakeTechEasier">Facebook</a> | <a href="http://twitter.com/MakeTechEasier">Twitter</a></p>
]]></content:encoded>
			<wfw:commentRss>http://maketecheasier.com/clone-your-live-wordpress-blog-to-a-local-server/2010/06/04/feed</wfw:commentRss>
		<slash:comments>23</slash:comments>
		</item>
		<item>
		<title>7 Important Features That Should Be Part Of WordPress Core</title>
		<link>http://maketecheasier.com/7-useful-features-that-should-be-part-of-wordpress-core/2010/02/18</link>
		<comments>http://maketecheasier.com/7-useful-features-that-should-be-part-of-wordpress-core/2010/02/18#comments</comments>
		<pubDate>Thu, 18 Feb 2010 13:00:38 +0000</pubDate>
		<dc:creator>Damien</dc:creator>
				<category><![CDATA[Featured]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[features]]></category>
		<category><![CDATA[Mobile]]></category>
		<category><![CDATA[plugins]]></category>
		<category><![CDATA[roles]]></category>

		<guid isPermaLink="false">http://maketecheasier.com/?p=12358</guid>
		<description><![CDATA[I love WordPress. I love its user-friendliness and how easy you can get it installed and running within 5 mins. I love its extensibility and the plugin system that enable us to increase its functionality without any coding needed. However, despite all the love, WordPress is not perfect. There are plenty of times where you [...]<p><div style="float:left;margin-bottom:10px"><a href="http://api.tweetmeme.com/share?url=http://maketecheasier.com/7-useful-features-that-should-be-part-of-wordpress-core/2010/02/18&amp;service=bit.ly" target="_blank"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http://maketecheasier.com/7-useful-features-that-should-be-part-of-wordpress-core/2010/02/18" style="border:none;margin-right:5px" width="51" height="61"></a><a href="http://digg.com/tools/diggthis/login?url=http://maketecheasier.com/7-useful-features-that-should-be-part-of-wordpress-core/2010/02/18" target="_blank"><img src="http://images.maketecheasier.com/diggme.png" style="border:none;margin-right:5px" ></a><a href="http://www.facebook.com/sharer.php?u=http://maketecheasier.com/7-useful-features-that-should-be-part-of-wordpress-core/2010/02/18" target="_blank"><img src="http://images.maketecheasier.com/fb.jpg" style="border:none;margin-right:5px" ></a><a href="http://www.google.com/reader/link?url=http://maketecheasier.com/7-useful-features-that-should-be-part-of-wordpress-core/2010/02/18&amp;title=7+Important+Features+That+Should+Be+Part+Of+WordPress+Core&amp;srcTitle=MakeTechEasier.com" target="_blank"><img src="http://images.maketecheasier.com/gbuzz-feed.png" style="border:none;margin-right:5px" ></a><a href="http://www.stumbleupon.com/submit?url=http://maketecheasier.com/7-useful-features-that-should-be-part-of-wordpress-core/2010/02/18" target="_blank"><img src="http://images.maketecheasier.com/stumble.png"></a></div>
<div style="clear:both"></div>
<strong><a href="http://maketecheasier.com/7-useful-features-that-should-be-part-of-wordpress-core/2010/02/18">7 Important Features That Should Be Part Of WordPress Core</a></strong> originally published on <a href="http://maketecheasier.com">Make Tech Easier</a> (<a href="http://feedproxy.google.com/MakeTechEasier">RSS</a>)
<br/>
Follow us at <a href="http://www.facebook.com/MakeTechEasier">Facebook</a> | <a href="http://twitter.com/MakeTechEasier">Twitter</a></p>
]]></description>
			<content:encoded><![CDATA[<p><img src="http://imagecdn.maketecheasier.com/2010/02/wordpress-logo.jpg" alt="wordpress-logo" title="wordpress-logo" width="200" height="150" class="alignleft size-full wp-image-12387" />I love WordPress. I love its user-friendliness and how easy you can get it installed and running within 5 mins. I love its extensibility and the plugin system that enable us to increase its functionality without any coding needed. However, despite all the love, WordPress is not perfect. There are plenty of times where you will wonder why a simple and basic feature is not included in the WordPress core and you have to go hunting for plugins/hacks/solutions just to solve a simple problem. </p>
<p>Take this as my letter to WordPress (and Matt Mullenweg) and I seriously hope they can add the following features to the core in the future. </p>
<p>Let&#8217;s begin!<br />
<span id="more-12358"></span></p>
<h3>1. Database Backup/Export/Import</h3>
<p><img src="http://imagecdn.maketecheasier.com/2010/02/wordpress-database-backup.png" alt="wordpress-database-backup" title="wordpress-database-backup" width="162" height="169" class="alignleft size-full wp-image-12391" />Being a database driven CMS, I am surprise that the default WP installation does not come with a way for you to backup your database. The Export feature is almost useless as it contains only contain your posts, pages, comments, custom fields, categories, and tags and none of the database settings that you have painstakingly set up over the years. And if you have a big blog (with tons of content), I can assure you that the Export feature is not going to work very well.</p>
<p>With a native database export/import function, it will be easy for the end users to backup their database and also to <a href="http://maketecheasier.com/clone-and-migrate-wordpress-blog-to-new-server/2008/01/30">migrate to another server</a> without any loss of settings.</p>
<p>Currently, the plugins that allow backing up of database include <a href="http://wordpress.org/extend/plugins/wp-db-backup/" target="_blank">WP-DB-Backup</a> and <a href="http://wordpress.org/extend/plugins/wp-dbmanager/" target="_blank">WP-DBManager</a></p>
<h3>2. Contact Form</h3>
<p>Contact form is a simple, yet essential component for every website, yet WordPress doesn&#8217;t think it is important enough to include it in the core. End users who need to create contact forms have to resort to plugins like <a href="http://wordpress.org/extend/plugins/contact-form-7" target="_blank">Contact Form 7</a>, <a href="http://www.deliciousdays.com/cforms-plugin/" target="_blank">cFormsII</a> to create contact form for their sites. Most CMS come with this contact form creation capability, so why not WordPress?</p>
<h3>3. Disable display of wp version in the meta tag</h3>
<p>Everyone knows the risk of placing your wp version in the &lt;head&gt; tag, except for the WordPress team. Instead of removing the versioning from the meta tag, they make it appear automatically (whether you like it or not) since WP2.5 and does not provide an easy way for you to remove it. Can you imagine installing a plugin just to remove the wp-version tag? What a waste of resources.</p>
<p><img src="http://imagecdn.maketecheasier.com/2010/02/wordpress-hide-version.png" alt="wordpress-hide-version" title="wordpress-hide-version" width="434" height="95" class="alignnone size-full wp-image-12393" /></p>
<p>To remove the wp version from your meta tag, you can add the following hook to your theme&#8217;s <em>functions.php</em> file</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">add_filter<span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'the_generator'</span><span style="color: #339933;">,</span> <span style="color: #990000;">create_function</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'$a'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">&quot;return null;&quot;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>or use the following plugins: <a href="http://wordpress.org/extend/plugins/wp-security-scan/" target="_blank">WP Security Scan</a> or <a href="http://wordpress.org/extend/plugins/secure-wordpress/" target="_blank">Secure WordPress</a></p>
<h3>4. Changing of wp table prefix during installation</h3>
<p>WordPress uses <em>wp_</em> as the default database table prefix and we all know how dangerous that can be. Most people don&#8217;t change the table prefix simply because they don&#8217;t know how to, or they are not able to (if installed via Fantasico). Yes, I know, you can change the table prefix in the wp-config.php file before installing, but how many people really do that? In my opinion, during the installation process, there should be a field for the users to specify their preferred table prefix. </p>
<p>For those who wanted to change their current wp table prefix, here&#8217;s <a href="http://maketecheasier.com/the-safe-way-to-change-your-wordpress-database-table-prefix/2009/11/07">how you can do it</a>. </p>
<h3>5. More control over the user roles/capabilities</h3>
<p>Have you ever wondered what is the differences between an <em>Editor</em>, <em>Author</em> and a <em>Contributor</em> role? I would appreciate if there is a small paragraph within the User section that explains the capabilities of each role, or a simple link that points to the <a href="http://codex.wordpress.org/Roles_and_Capabilities" target="_blank">WordPress documentation</a> site. </p>
<p>In addition, there are plenty of time when we need to limit (or expand) the capabilities of a particular role and there is no way to do that in the native WordPress installation. Users have to use the <a href="http://www.im-web-gefunden.de/wordpress-plugins/role-manager/" target="_blank">role-manager</a> plugin to change the capabilities of each role. </p>
<h3>6. Choose your own admin username</h3>
<p>The default username for administrator is, as you have guessed it, <em>admin</em>. Is it so difficult to let the users choose their own administrative login name during the installation process?</p>
<h3>7. Support for mobile devices</h3>
<p>WordPress.com realized the importance of mobile visitors (more than 60 million page views come from mobile phones per month for WordPress.com blogs) and have activated a mobile theme  (to be more precise, the <a href="http://www.bravenewcode.com/products/wptouch/" target="_blank">WpTouch</a> plugin) for mobile users. The mobile support feature is integrated into WordPress.com and users can choose to enable/disable the mobile theme in the settings. </p>
<p><img src="http://imagecdn.maketecheasier.com/2010/02/wordpress-disable-mobile-themes.png" alt="wordpress-disable-mobile-themes" title="wordpress-disable-mobile-themes" width="489" height="224" class="alignnone size-full wp-image-12389" /></p>
<p>Isn&#8217;t it time for the users of self-hosted WordPress to get the same treatment too?</p>
<p>Those who want to activate mobile support for your WP blogs can install the plugins: <a href="http://www.bravenewcode.com/products/wptouch/" target="_blank">WPTouch</a>, <a href="http://wordpress.org/extend/plugins/wordpress-mobile-pack/" target="_blank">WordPress Mobile Pack</a> and <a href="http://imthi.com/wp-pda" target="_blank">wp-pda</a></p>
<p>What&#8217;s your say? What other features do you think should be included in the WP core?</p>
<p>Image credit: <a href="http://www.flickr.com/photos/iamperegrino/" target="_blank">Peregrino Will Reign</a><br />
<!--adsense#468x60--></p>
<p><div style="float:left;margin-bottom:10px"><a href="http://api.tweetmeme.com/share?url=http://maketecheasier.com/7-useful-features-that-should-be-part-of-wordpress-core/2010/02/18&amp;service=bit.ly" target="_blank"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http://maketecheasier.com/7-useful-features-that-should-be-part-of-wordpress-core/2010/02/18" style="border:none;margin-right:5px" width="51" height="61"></a><a href="http://digg.com/tools/diggthis/login?url=http://maketecheasier.com/7-useful-features-that-should-be-part-of-wordpress-core/2010/02/18" target="_blank"><img src="http://images.maketecheasier.com/diggme.png" style="border:none;margin-right:5px" ></a><a href="http://www.facebook.com/sharer.php?u=http://maketecheasier.com/7-useful-features-that-should-be-part-of-wordpress-core/2010/02/18" target="_blank"><img src="http://images.maketecheasier.com/fb.jpg" style="border:none;margin-right:5px" ></a><a href="http://www.google.com/reader/link?url=http://maketecheasier.com/7-useful-features-that-should-be-part-of-wordpress-core/2010/02/18&amp;title=7+Important+Features+That+Should+Be+Part+Of+WordPress+Core&amp;srcTitle=MakeTechEasier.com" target="_blank"><img src="http://images.maketecheasier.com/gbuzz-feed.png" style="border:none;margin-right:5px" ></a><a href="http://www.stumbleupon.com/submit?url=http://maketecheasier.com/7-useful-features-that-should-be-part-of-wordpress-core/2010/02/18" target="_blank"><img src="http://images.maketecheasier.com/stumble.png"></a></div>
<div style="clear:both"></div>
<strong><a href="http://maketecheasier.com/7-useful-features-that-should-be-part-of-wordpress-core/2010/02/18">7 Important Features That Should Be Part Of WordPress Core</a></strong> originally published on <a href="http://maketecheasier.com">Make Tech Easier</a> (<a href="http://feedproxy.google.com/MakeTechEasier">RSS</a>)
<br/>
Follow us at <a href="http://www.facebook.com/MakeTechEasier">Facebook</a> | <a href="http://twitter.com/MakeTechEasier">Twitter</a></p>
]]></content:encoded>
			<wfw:commentRss>http://maketecheasier.com/7-useful-features-that-should-be-part-of-wordpress-core/2010/02/18/feed</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>The Safe Way to Change your WordPress Database Table Prefix</title>
		<link>http://maketecheasier.com/the-safe-way-to-change-your-wordpress-database-table-prefix/2009/11/07</link>
		<comments>http://maketecheasier.com/the-safe-way-to-change-your-wordpress-database-table-prefix/2009/11/07#comments</comments>
		<pubDate>Sat, 07 Nov 2009 13:00:08 +0000</pubDate>
		<dc:creator>Damien</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[plugins]]></category>
		<category><![CDATA[table prefix]]></category>

		<guid isPermaLink="false">http://maketecheasier.com/?p=8172</guid>
		<description><![CDATA[Unless you have make an attempt to change the table prefix before installing your WordPress blog, chances are that your WP database is still using the default &#8216;wp_&#8217; as the table prefix. With this default prefix, hackers can easily perform a SQL injection attacks on your database and wreak havoc to your site. The best [...]<p><div style="float:left;margin-bottom:10px"><a href="http://api.tweetmeme.com/share?url=http://maketecheasier.com/the-safe-way-to-change-your-wordpress-database-table-prefix/2009/11/07&amp;service=bit.ly" target="_blank"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http://maketecheasier.com/the-safe-way-to-change-your-wordpress-database-table-prefix/2009/11/07" style="border:none;margin-right:5px" width="51" height="61"></a><a href="http://digg.com/tools/diggthis/login?url=http://maketecheasier.com/the-safe-way-to-change-your-wordpress-database-table-prefix/2009/11/07" target="_blank"><img src="http://images.maketecheasier.com/diggme.png" style="border:none;margin-right:5px" ></a><a href="http://www.facebook.com/sharer.php?u=http://maketecheasier.com/the-safe-way-to-change-your-wordpress-database-table-prefix/2009/11/07" target="_blank"><img src="http://images.maketecheasier.com/fb.jpg" style="border:none;margin-right:5px" ></a><a href="http://www.google.com/reader/link?url=http://maketecheasier.com/the-safe-way-to-change-your-wordpress-database-table-prefix/2009/11/07&amp;title=The+Safe+Way+to+Change+your+WordPress+Database+Table+Prefix&amp;srcTitle=MakeTechEasier.com" target="_blank"><img src="http://images.maketecheasier.com/gbuzz-feed.png" style="border:none;margin-right:5px" ></a><a href="http://www.stumbleupon.com/submit?url=http://maketecheasier.com/the-safe-way-to-change-your-wordpress-database-table-prefix/2009/11/07" target="_blank"><img src="http://images.maketecheasier.com/stumble.png"></a></div>
<div style="clear:both"></div>
<strong><a href="http://maketecheasier.com/the-safe-way-to-change-your-wordpress-database-table-prefix/2009/11/07">The Safe Way to Change your WordPress Database Table Prefix</a></strong> originally published on <a href="http://maketecheasier.com">Make Tech Easier</a> (<a href="http://feedproxy.google.com/MakeTechEasier">RSS</a>)
<br/>
Follow us at <a href="http://www.facebook.com/MakeTechEasier">Facebook</a> | <a href="http://twitter.com/MakeTechEasier">Twitter</a></p>
]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft size-full wp-image-8211" title="tbl_prefix-wp-on-table" src="http://imagecdn.maketecheasier.com/2009/11/tbl_prefix-wp-on-table.jpg" alt="tbl_prefix-wp-on-table" width="200" height="133" />Unless you have make an attempt to change the table prefix before installing your WordPress blog, chances are that your WP database is still using the default &#8216;wp_&#8217; as the table prefix. With this default prefix, hackers can easily perform a SQL injection attacks on your database and wreak havoc to your site. The best way to prevent this from happening is to change the table prefix to another term that is difficult for hackers to guess.</p>
<p>If you are new to blogging and are looking to install your first WordPress blog, then it is easy. Simply change the <em>$table_prefix</em> entry in wp-config.php file, upload the file to the server, then proceed on with the <a href="http://codex.wordpress.org/Installing_WordPress#Famous_5-Minute_Install" target="_blank">famous 5-mins installation</a>.</p>
<p>For those who have already been blogging for sometime, follow the method below to change your table prefix.<br />
<span id="more-8172"></span></p>
<h3>Preparation</h3>
<p>Download the following two plugins, install and activate them in your WordPress blog.</p>
<p><strong>WP-DBManager</strong> (<a href="http://wordpress.org/extend/plugins/wp-dbmanager/">plugin download page</a>)</p>
<p><strong>WordPress Table Rename</strong> (<a href="http://dl.getdropbox.com/u/149825/wordpress-table-rename.php.zip" target="_blank">modified version</a>,  <a href="http://www.seoegghead.com/software/wordpress-table-rename.seo" target="_blank">original download page</a>)</p>
<p>Note: I have make a slight modification to the WordPress Table Rename plugin to include changes in the later version of WordPress, but credit must be given to <a href="http://www.seoegghead.com/" target="_blank">SEO Egghead</a> for creating such an useful plugin.</p>
<h3>Get started</h3>
<p>Before you do anything to your database, first perform a db backup.</p>
<p>On the left pane, go to <em>Database –&gt; Backup DB. </em>Do a backup of your database.</p>
<p><img class="alignnone size-full wp-image-8174" title="tbl_prefix-backup-db" src="http://imagecdn.maketecheasier.com/2009/11/tbl_prefix-backup-db.png" alt="tbl_prefix-backup-db" width="577" height="319" /></p>
<p>Next, go to <em>Settings –&gt; Table Rename</em></p>
<p>Enter a new term for the table prefix.</p>
<p>Click the <em>Create New Tables</em> button to generate new tables with the new prefix. If you have a big database, this process will take a long time.</p>
<p><img class="alignnone size-full wp-image-8175" title="tbl_prefix-new-table" src="http://imagecdn.maketecheasier.com/2009/11/tbl_prefix-new-table.png" alt="tbl_prefix-new-table" width="479" height="260" /></p>
<p>When it is done, you will see the success message.</p>
<p><img class="alignnone size-full wp-image-8177" title="tbl_prefix-success-message" src="http://imagecdn.maketecheasier.com/2009/11/tbl_prefix-success-message.png" alt="tbl_prefix-success-message" width="577" height="168" /></p>
<p>If you have a big database, the page might issue a timeout and show a blank page.</p>
<h3>Verify your new database tables</h3>
<p>Now go to Database-&gt;database. You should see the new tables in place.</p>
<p><img class="alignnone size-full wp-image-8178" title="tbl_prefix-database-table" src="http://imagecdn.maketecheasier.com/2009/11/tbl_prefix-database-table.png" alt="tbl_prefix-database-table" width="577" height="498" /></p>
<h3>Migrating your blog</h3>
<p>While the plugin provides a way to change the table_prefix value in wp-config.php file, it won’t work in most cases unless you have set the wp-config.php file readable/writable (which I strongly advised against). The best way is to change the value manually.</p>
<p>With your favorite FTP program, download your wp-config.php from the root server.</p>
<p>Open it up with any text editor and scroll down to the section where you see</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$table_prefix</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'wp_'</span></pre></div></div>

<p>Change it to</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$table_prefix</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'YourNewPrefix_'</span></pre></div></div>

<p>Save it and re-upload this file back to the server.</p>
<h3>Almost there</h3>
<p>You have just completed the migration from the old table prefix to new table prefix, there are still several things that you need to do</p>
<p>1. Browse through your site and make sure all the pages, images and content are loading correctly. If you see errors, or that the site is not loading, change the <em>$table_prefix</em> back to &#8216;<em>wp_</em>&#8216; and re-upload back to the server.</p>
<p>2. Browse through the settings for each individual plugin and make sure that all the configurations are intact. Some of the plugins use the table prefix for their storage and these values were not changed by the plugin. For such plugins, you will see the settings fall back to their default values. What you have to do is to reconfigure it and re-save it. It will now store in the database with the new table prefix.</p>
<p>3. (Optional) Go to the <em>Database –&gt; Empty/Drop Tables</em>, check the <em>Drop</em> button for all the table with the old prefix. Click the Empty/Drop button to remove them from your database.</p>
<p><strong>Important</strong>: <em>Do this only if you are sure that the  new tables (with the new prefix) are working correctly.</em></p>
<p><img class="alignnone size-full wp-image-8179" title="tbl_prefix-delete-table" src="http://imagecdn.maketecheasier.com/2009/11/tbl_prefix-delete-table.png" alt="tbl_prefix-delete-table" width="580" height="714" /></p>
<p>Note that this is purely optional. Leaving your old table in the database will not hurt your blog and it can serve as a backup and allow you to switch back to them quickly in the event your blog got hacked into. However, if you have a big database, the extra tables could add plenty of overhead to your server. So, make your own judgement.</p>
<h3>Last part</h3>
<p>Once you are happy with everything, backup the new database. If you have previously schedule a daily backup, you have to reschedule it again to include the new tables.</p>
<p>You can also deactivate and uninstall the WordPress Table Rename plugin. There is no use for it now.</p>
<p>That’s it. You have successfully changed your WordPress database table prefix.</p>
<p>Image credit: <a href="http://www.flickr.com/photos/naokomc/" target="_blank">naokomc</a><br />
<!--adsense#468x60--></p>
<p><div style="float:left;margin-bottom:10px"><a href="http://api.tweetmeme.com/share?url=http://maketecheasier.com/the-safe-way-to-change-your-wordpress-database-table-prefix/2009/11/07&amp;service=bit.ly" target="_blank"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http://maketecheasier.com/the-safe-way-to-change-your-wordpress-database-table-prefix/2009/11/07" style="border:none;margin-right:5px" width="51" height="61"></a><a href="http://digg.com/tools/diggthis/login?url=http://maketecheasier.com/the-safe-way-to-change-your-wordpress-database-table-prefix/2009/11/07" target="_blank"><img src="http://images.maketecheasier.com/diggme.png" style="border:none;margin-right:5px" ></a><a href="http://www.facebook.com/sharer.php?u=http://maketecheasier.com/the-safe-way-to-change-your-wordpress-database-table-prefix/2009/11/07" target="_blank"><img src="http://images.maketecheasier.com/fb.jpg" style="border:none;margin-right:5px" ></a><a href="http://www.google.com/reader/link?url=http://maketecheasier.com/the-safe-way-to-change-your-wordpress-database-table-prefix/2009/11/07&amp;title=The+Safe+Way+to+Change+your+WordPress+Database+Table+Prefix&amp;srcTitle=MakeTechEasier.com" target="_blank"><img src="http://images.maketecheasier.com/gbuzz-feed.png" style="border:none;margin-right:5px" ></a><a href="http://www.stumbleupon.com/submit?url=http://maketecheasier.com/the-safe-way-to-change-your-wordpress-database-table-prefix/2009/11/07" target="_blank"><img src="http://images.maketecheasier.com/stumble.png"></a></div>
<div style="clear:both"></div>
<strong><a href="http://maketecheasier.com/the-safe-way-to-change-your-wordpress-database-table-prefix/2009/11/07">The Safe Way to Change your WordPress Database Table Prefix</a></strong> originally published on <a href="http://maketecheasier.com">Make Tech Easier</a> (<a href="http://feedproxy.google.com/MakeTechEasier">RSS</a>)
<br/>
Follow us at <a href="http://www.facebook.com/MakeTechEasier">Facebook</a> | <a href="http://twitter.com/MakeTechEasier">Twitter</a></p>
]]></content:encoded>
			<wfw:commentRss>http://maketecheasier.com/the-safe-way-to-change-your-wordpress-database-table-prefix/2009/11/07/feed</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>8 Useful Tricks To Clean Up &amp; Streamline Your WordPress Database</title>
		<link>http://maketecheasier.com/8-useful-tricks-to-clean-up-streamline-your-wordpress-database/2009/02/17</link>
		<comments>http://maketecheasier.com/8-useful-tricks-to-clean-up-streamline-your-wordpress-database/2009/02/17#comments</comments>
		<pubDate>Tue, 17 Feb 2009 12:55:00 +0000</pubDate>
		<dc:creator>Damien</dc:creator>
				<category><![CDATA[WordPress]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[wordpress plugin]]></category>

		<guid isPermaLink="false">http://maketecheasier.com/?p=2764</guid>
		<description><![CDATA[Being a database-driven software, the performance of your WordPress blog is closely related to how efficient your database is. The bigger and messier your database is, the slower is the performance of your blog. If you have not been doing regular housekeeping and database maintenance, either because you don&#8217;t know how to do or you [...]<p><div style="float:left;margin-bottom:10px"><a href="http://api.tweetmeme.com/share?url=http://maketecheasier.com/8-useful-tricks-to-clean-up-streamline-your-wordpress-database/2009/02/17&amp;service=bit.ly" target="_blank"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http://maketecheasier.com/8-useful-tricks-to-clean-up-streamline-your-wordpress-database/2009/02/17" style="border:none;margin-right:5px" width="51" height="61"></a><a href="http://digg.com/tools/diggthis/login?url=http://maketecheasier.com/8-useful-tricks-to-clean-up-streamline-your-wordpress-database/2009/02/17" target="_blank"><img src="http://images.maketecheasier.com/diggme.png" style="border:none;margin-right:5px" ></a><a href="http://www.facebook.com/sharer.php?u=http://maketecheasier.com/8-useful-tricks-to-clean-up-streamline-your-wordpress-database/2009/02/17" target="_blank"><img src="http://images.maketecheasier.com/fb.jpg" style="border:none;margin-right:5px" ></a><a href="http://www.google.com/reader/link?url=http://maketecheasier.com/8-useful-tricks-to-clean-up-streamline-your-wordpress-database/2009/02/17&amp;title=8+Useful+Tricks+To+Clean+Up+%26%23038%3B+Streamline+Your+WordPress+Database&amp;srcTitle=MakeTechEasier.com" target="_blank"><img src="http://images.maketecheasier.com/gbuzz-feed.png" style="border:none;margin-right:5px" ></a><a href="http://www.stumbleupon.com/submit?url=http://maketecheasier.com/8-useful-tricks-to-clean-up-streamline-your-wordpress-database/2009/02/17" target="_blank"><img src="http://images.maketecheasier.com/stumble.png"></a></div>
<div style="clear:both"></div>
<strong><a href="http://maketecheasier.com/8-useful-tricks-to-clean-up-streamline-your-wordpress-database/2009/02/17">8 Useful Tricks To Clean Up &#038; Streamline Your WordPress Database</a></strong> originally published on <a href="http://maketecheasier.com">Make Tech Easier</a> (<a href="http://feedproxy.google.com/MakeTechEasier">RSS</a>)
<br/>
Follow us at <a href="http://www.facebook.com/MakeTechEasier">Facebook</a> | <a href="http://twitter.com/MakeTechEasier">Twitter</a></p>
]]></description>
			<content:encoded><![CDATA[<p><img class="alignleft size-full wp-image-2804" title="wp-dbcleanup" src="http://imagecdn.maketecheasier.com/2009/02/wp-dbcleanup.jpg" alt="wp-dbcleanup" width="311" height="115" />Being a database-driven software, the performance of your WordPress blog is closely related to how efficient your database is. The bigger and messier your database is, the slower is the performance of your blog.</p>
<p>If you have not been doing regular housekeeping and database maintenance, either because you don&#8217;t know how to do or you are just plain lazy, here are 8 useful tricks that you can use to clean up your WordPress database easily and quickly.</p>
<p><span id="more-2764"></span></p>
<h3>1) Turn off/delete post revision</h3>
<p>While the post revision is a good way to make sure that any changes to a post is documented, it can be a waste of database and server resources if you are the only user of the blog and does not collaborate with other authors for article writing.</p>
<p>To prevent the post revision from cluttering your database, it is best to turn it off once and for all.</p>
<p>You can easily turn off post-revision by adding the following line to the <em>wp_config.php</em> file</p>
<p class="codeblock">define(&#8216;WP_POST_REVISIONS&#8217;, false);</p>
<p>If you want to keep the post revision for record purpose, you can limit the number of revisions saved per post. In your <em>wp_config.php</em> file, add the following line instead:</p>
<p class="codeblock">define(&#8216;WP_POST_REVISIONS&#8217;, no_of_revision);</p>
<p>and replace the <em>no_of_revision</em> by the number of revision copy you want to keep.</p>
<p><strong>Removing existing post revisions</strong></p>
<p>Turning off the post revision feature only restrict WordPress not to keep any revision for future posts. It does not delete the existing post revisions in your database. To delete all instances of post revision and all its related entries), we will make use of the <a title="delete-revision" href="http://blog.gohsy.com/topics/delete-revision-plugin.html" target="_blank">delete-revision</a> plugin with some simple modification (the plugin only delete the post revision. It does not delete all other unused entries that are related to the post revision).</p>
<p>Download the plugin <a title="delete-revision" href="http://wordpress.org/extend/plugins/delete-revision/" target="_blank">delete-revision</a> to your desktop.</p>
<p>Extract the zip file. Open up the <em>delete-revision</em> folder and load the <em>delete-revision.php</em> file in a text editor. Scroll down to the line 140 where you see</p>
<p class="codeblock">$sql = &#8220;DELETE FROM $wpdb-&gt;posts WHERE post_type = &#8216;revision&#8217;&#8221;;</p>
<p>replace it with</p>
<p class="codeblock">$sql = &#8220;DELETE a,b,c FROM $wpdb-&gt;posts a LEFT JOIN $wpdb-&gt;term_relationships b ON (a.ID = b.object_id) LEFT JOIN $wpdb-&gt;postmeta c ON (a.ID = c.post_id) WHERE a.post_type = &#8216;revision&#8217;&#8221;;</p>
<p>(Code adapted from <a href="http://lesterchan.net/wordpress/2008/07/17/how-to-turn-off-post-revision-in-wordpress-26/" target="_blank">Lester Chan</a>)</p>
<p>Save the file. Upload the whole <em>delete-revision</em> folder to your blog plugins folder.</p>
<p>Activate the plugin. Go to the <em>Delete-Revision</em> page under the Setting section. Run the application to scan your database for all instances of post revisions and delete them from your database.</p>
<p><img class="alignnone" src="http://imagecdn.maketecheasier.com/2009/02/delete-revision.jpg" alt="delete-revision.jpg" width="577" height="240" /></p>
<p>If you are keeping copies of post revision in your database, you should run the <em>Delete-Revision manager</em> once every few months to clean up your database.</p>
<h3>2) Delete unused images</h3>
<p>Everytime you upload an image, WordPress automatically create duplicate copies of that image and resize them to thumbnail and medium size. Most of the time, these images are not used. In addition, there could also be some images that you have uploaded, but did not use them in the post. These unused images could easily add up to a massive size and cause unnecessarily burden to the server and database.</p>
<p>The <a title="Delete Unused Images" href="http://www.bobhobby.com/2008/02/24/delete-unused-image-files-plugin-for-wordpress/" target="_blank">DUI</a> (Delete Unused Images) plugin scans your WordPress blog and find those images that are not used or referenced to by any of the posts/pages. It then proceeds to delete them from the database/server.</p>
<p><img class="alignnone" src="http://imagecdn.maketecheasier.com/2009/02/dui.jpg" alt="dui.jpg" width="367" height="269" /></p>
<p>To use the plugin, you have use a FTP program to chmod the <em>Uploads</em> folder (the folder where images are stored) to 777. Once you have deleted the unused images, chmod the folder back to 755 again to prevent access from other people.</p>
<p>Similarly, you should run this plugin every few months to clear up your database.</p>
<h3>3) Optimize database</h3>
<p>As you add or remove entries into the database, pocket of spaces are created. These are useless space and could cause your database to swell quickly. You can easily free up these spaces by running a SQL <em>optimize table</em> query in myphpadmin.</p>
<p>If you are not technically inclined or find it troublesome to log into your myphpadmin, the best way is to use the plugin <a href="http://wordpress.org/extend/plugins/wp-dbmanager/" target="_blank">WP-DBManager</a> to manage your database.</p>
<p>Install and activate the plugin. Under the <em>Database -&gt; Optimize Database</em> options, select the table that you want to optimize and click the <em>Optimize</em> buttonto start the optimization. It should take less than a minute.</p>
<p><img class="alignnone" src="http://imagecdn.maketecheasier.com/2009/02/optimized-db.jpg" alt="optimized-db.jpg" width="577" height="435" /></p>
<p>You can also schedule it to optimize the database every few days/weeks/months</p>
<p>Go to <em>Database -&gt; Database option</em>. Scroll down till you see the <em>Automatic Optimizing of DB</em>. Set the frequency for it to auto-optimize your database.</p>
<p><img class="alignnone" src="http://imagecdn.maketecheasier.com/2009/02/schedule-optimize-db.jpg" alt="schedule-optimize-db.jpg" width="577" height="118" /></p>
<h3>4) Delete unwanted plugin</h3>
<p>If you have decided that you have no use for a particular plugin, deactivated them and delete them from your server. The more (unused) plugins you keep in your server, the longer it takes for WordPress to generate the plugin list and the higher tendency that it will slow down the loading time of your blog.</p>
<h3>5) Uninstall plugin completely</h3>
<p>When you deactivated/uninstall a plugin, the options or the tables that the plugin created are not removed. As you install and uninstall a lot of plugin, there will be more and more orphaned options and tables that are taking up precious space in your database.</p>
<p>For plugins that have created table entries in the database, you can use the abovementioned WP-DBManager to drop the respective table from your database.</p>
<p>For those plugins that have created options, you have to use the <a href="http://www.mittineague.com/dev/co.php" target="_blank">Clean Option</a> plugin to hunt down the orphaned options and delete them from the database.</p>
<p><img class="alignnone" src="http://imagecdn.maketecheasier.com/2009/02/clean-option.jpg" alt="clean-option.jpg" width="577" height="249" /></p>
<h3>6) Remove unused themes</h3>
<p>Similarly, if you have plenty of unused themes in the server, delete those that you don&#8217;t use.</p>
<h3>7) Check your site for deadlinks</h3>
<p>While it is an usual practise to link to other posts/blogs/domains in your articles, you should check frequently that the linked post/domain still exist and you are not left with a dead link. It can be very frustrating for your reader to follow your link only to find that the destination page is no longer around. In addition, too many dead links can also affect your search engine ranking. I am sure this is not something that you want to see.</p>
<p>The <a href="http://wordpress.org/extend/plugins/broken-link-checker/" target="_blank">broken link checker</a> plugin checks your new article for broken links as soon as it is published. It also scans your old posts when you are logged into the Admin page. Any broken links found are reported to you and you can choose to edit or unlink them from the posts.</p>
<p><img class="alignnone size-full wp-image-2806" title="broken-link-checker" src="http://imagecdn.maketecheasier.com/2009/02/broken-link-checker.jpg" alt="broken-link-checker" width="577" height="191" /></p>
<h3>8) Delete spam comment</h3>
<p>It is common to receive tons of spam comments, sometime as soon as you post the article. Even though these spam comments are not shown in your blog, they are still gathered in your database to educate &#8220;intelligent&#8221; anti-spam plugins. If you received plenty of spam every day (or every hour), this could be taking up a lot of valuable database space. To erase the spam, either go to the <em>Comment -&gt; Spam</em> page, check all the spam comments and select <em>Delete</em> from the dropdown box.</p>
<p>Alternatively, you can use the <a href="http://www.ruhanirabin.com/wp-optimize/" target="_blank">WP-Optimize</a> plugin to clean up all spam and unapprove comments</p>
<p><img class="alignnone size-full wp-image-2801" title="wp-optimize" src="http://imagecdn.maketecheasier.com/2009/02/wp-optimize.jpg" alt="wp-optimize" width="577" height="422" /></p>
<p>The WP-Optimize plugin also comes with other features such as delete revision, optimize database table and change your username. Personally I would prefer to use the WP-DBManager to optimize my database table as it allows me to schedule the optimization task on a regular basis. In addition, the WP-Optimize is only tested for WP2.7, so if you are still using a WP version less than 2.7, you have to use it at your own risk.</p>
<p>What other ways do you use to clean up your WordPress database?</p>
<p><!--adsense#468x60--></p>
<p><div style="float:left;margin-bottom:10px"><a href="http://api.tweetmeme.com/share?url=http://maketecheasier.com/8-useful-tricks-to-clean-up-streamline-your-wordpress-database/2009/02/17&amp;service=bit.ly" target="_blank"><img src="http://api.tweetmeme.com/imagebutton.gif?url=http://maketecheasier.com/8-useful-tricks-to-clean-up-streamline-your-wordpress-database/2009/02/17" style="border:none;margin-right:5px" width="51" height="61"></a><a href="http://digg.com/tools/diggthis/login?url=http://maketecheasier.com/8-useful-tricks-to-clean-up-streamline-your-wordpress-database/2009/02/17" target="_blank"><img src="http://images.maketecheasier.com/diggme.png" style="border:none;margin-right:5px" ></a><a href="http://www.facebook.com/sharer.php?u=http://maketecheasier.com/8-useful-tricks-to-clean-up-streamline-your-wordpress-database/2009/02/17" target="_blank"><img src="http://images.maketecheasier.com/fb.jpg" style="border:none;margin-right:5px" ></a><a href="http://www.google.com/reader/link?url=http://maketecheasier.com/8-useful-tricks-to-clean-up-streamline-your-wordpress-database/2009/02/17&amp;title=8+Useful+Tricks+To+Clean+Up+%26%23038%3B+Streamline+Your+WordPress+Database&amp;srcTitle=MakeTechEasier.com" target="_blank"><img src="http://images.maketecheasier.com/gbuzz-feed.png" style="border:none;margin-right:5px" ></a><a href="http://www.stumbleupon.com/submit?url=http://maketecheasier.com/8-useful-tricks-to-clean-up-streamline-your-wordpress-database/2009/02/17" target="_blank"><img src="http://images.maketecheasier.com/stumble.png"></a></div>
<div style="clear:both"></div>
<strong><a href="http://maketecheasier.com/8-useful-tricks-to-clean-up-streamline-your-wordpress-database/2009/02/17">8 Useful Tricks To Clean Up &#038; Streamline Your WordPress Database</a></strong> originally published on <a href="http://maketecheasier.com">Make Tech Easier</a> (<a href="http://feedproxy.google.com/MakeTechEasier">RSS</a>)
<br/>
Follow us at <a href="http://www.facebook.com/MakeTechEasier">Facebook</a> | <a href="http://twitter.com/MakeTechEasier">Twitter</a></p>
]]></content:encoded>
			<wfw:commentRss>http://maketecheasier.com/8-useful-tricks-to-clean-up-streamline-your-wordpress-database/2009/02/17/feed</wfw:commentRss>
		<slash:comments>32</slash:comments>
		</item>
	</channel>
</rss>

