<?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>Exploring The Internet &#187; mysql tutorial</title>
	<atom:link href="http://www.learningwp.com/tag/mysql-tutorial/feed" rel="self" type="application/rss+xml" />
	<link>http://www.learningwp.com</link>
	<description>Exploring the web - Growing my experience toward my online business</description>
	<lastBuildDate>Tue, 07 Sep 2010 01:30:33 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>How to Transfer My WordPress Blog to a New Domain?</title>
		<link>http://www.learningwp.com/transfer-my-wordpress-blog-to-a-new-domain.html</link>
		<comments>http://www.learningwp.com/transfer-my-wordpress-blog-to-a-new-domain.html#comments</comments>
		<pubDate>Tue, 25 Nov 2008 04:47:13 +0000</pubDate>
		<dc:creator>Lanna</dc:creator>
				<category><![CDATA[Domain]]></category>
		<category><![CDATA[How to]]></category>
		<category><![CDATA[WordPress]]></category>
		<category><![CDATA[WordPress Plugins]]></category>
		<category><![CDATA[WordPress Tips]]></category>
		<category><![CDATA[cpanel]]></category>
		<category><![CDATA[database name]]></category>
		<category><![CDATA[FTP]]></category>
		<category><![CDATA[mysql database]]></category>
		<category><![CDATA[mysql tutorial]]></category>
		<category><![CDATA[new domain]]></category>
		<category><![CDATA[phpMyAdmin]]></category>
		<category><![CDATA[transfer domain]]></category>
		<category><![CDATA[transfer WordPress]]></category>
		<category><![CDATA[WordPress blog]]></category>

		<guid isPermaLink="false">http://www.learningwp.com/?p=150</guid>
		<description><![CDATA[








I&#8217;ve just successfully transferred my old WordPress blog which is in the subdomain of /blog/ to a new domain (the current domain). This was done within the same host.

First I used FTP to back up my old WordPress blog files to my laptop.


Second I upgraded my old WordPress 2.6.1 to be the newest version WordPress [...]]]></description>
			<content:encoded><![CDATA[<p>
<!-- Begin Google Adsense code -->
<div style="display: block; float: left; padding: 5px 10px 10px 0;">
<script type="text/javascript"><!--
google_ad_client = "pub-4932554700716308";
/* 336x280, created 12/24/07 */
google_ad_slot = "2510575724";
google_ad_width = 336;
google_ad_height = 280;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div>
<!-- End Google Adsense code -->
I&#8217;ve just successfully transferred my old <em>WordPress</em> blog which is in the subdomain of /blog/ to a new domain (the current domain). This was done within the same host.</p>
<ul>
<li>First I used <a title="How to Set Up FTP to transfer Files?" href="http://meaningfulblog.blogspot.com/2008/03/how-to-set-up-ftp-to-transfer-files.html" target="_blank">FTP</a> to back up my old <em>WordPress</em> blog files to my laptop.</li>
</ul>
<ul>
<li>Second I upgraded my old <em>WordPress 2.6.1</em> to be the newest version <a title="How to Upgrade Your WordPress Blog to WordPress 2.6.5?" href="http://www.learningwp.com/how-to-upgrade-your-wordpress-blog-to-wordpress-265.html">WordPress 2.6.5</a>.</li>
</ul>
<ul>
<li>Third I logged in to my host&#8217;s <span style="color: #ff0000;">cPanel</span>/<span style="color: #ff0000;">phpMyAdmin</span> to export my old <em>WordPress</em> blog&#8217;s database to my laptop. See <a title="Wordpress Database Backup" href="http://www.tamba2.org.uk/wordpress/backup/" target="_blank">WordPress Backup with phpMyAdmin</a> here.</li>
</ul>
<ul>
<li>Next I created a new folder named wp for the new domain. I then created a <code>robots.txt</code> in wp fold with the following contents:<br />
<code>User-agent: *<br />
Disallow: /</code><br />
This is to prevent any search engines to crawl my site before it is ready.</li>
</ul>
<ul>
<li>Next I created a new database in my host <span style="color: #ff0000;">cPanel</span> for this new domain. See <a title="WordPress Tutorial: Setting Up A MySQL Database With cPanel" href="http://www.siteground.com/tutorials/php-mysql/mysql_database_user.htm" target="_blank">WordPress Tutorial: Setting Up A MySQL Database With cPanel</a> here.</li>
</ul>
<ul>
<li>Next I typed the url of my website in my browse to run the install and input the information I&#8217;v got from the last step to finish the installation.</li>
</ul>
<ul>
<li>Then I edited wp-config.php file which should be in your root directory and changed the high-lighted parts with the information I&#8217;ve got earlier.</li>
<p><span>define(’DB_NAME’, ‘<strong>databasename</strong>‘); // Change the high-lighted part to be your database name<br />
define(’DB_USER’, ‘<strong>mysqlusername</strong>‘); // Change the high-lighted part to be your MySQL username<br />
define(’DB_PASSWORD’, ‘<strong>mysqlpassword</strong>‘); // Change the high-lighted part to be your password<br />
define(’DB_HOST’, ‘localhost’); // 99% chance you won’t need to change this value.</span></ul>
<ul>
<li>Next I used <a title="How to Set Up FTP to transfer Files?" href="http://meaningfulblog.blogspot.com/2008/03/how-to-set-up-ftp-to-transfer-files.html" target="_blank">FTP</a> to upload all my old <em>WordPress</em> blog&#8217;s files to <span style="color: #ff0000;">public_html</span>/<span style="color: #ff0000;">wp</span> folder.</li>
</ul>
<ul>
<li>Then I imported my old database to replace the new one I&#8217;ve created eariler. (if your database name, mysql username, and mysql password are the same as the old one, then you don&#8217;t need to do anything otherwise you have to change them before you can import it.)</li>
</ul>
<ul>
<li>Then I logged in to my <em>WordPress</em> admin area and used <a onclick="exitTracker._trackEvent('article','http://wordpress.org/extend/plugins/search-and-replace/');" href="http://wordpress.org/extend/plugins/search-and-replace/">Search and Replace plugin</a> to search all my old <em>WordPress</em> urls in database to be replaced with my new urls.</li>
</ul>
<ul>
<li>Then I double checked my website to see whether everything was working properly. After that I deleted the<code> robots.txt file.</code></li>
</ul>
<ul>
<li>Finally I added the following line in my old blog&#8217;s .htaccess file right after<br />
RewriteEngine On<br />
<span style="color: #ff0000;">RewriteRule ^(.*)$ http://www.<strong>yourdomainname</strong>.com/$1 [R=301,L]</span></li>
<p>You must change <strong>yourdomainname</strong> to be your actual domain name. Adding this line in my old blog&#8217;s .htaccess will ensure that all my old blog&#8217;s traffic will be redirected to my new blog with every single post I&#8217;ve created.</ul>
<p>Any questions? or suggestions? Please share them with us.</p>
<p><div style="float:left;width:49%;margin-right:1%;height:245px;"><a rel="nofollow" href="http://rover.ebay.com/rover/1/711-53200-19255-0/1?icep_ff3=2&toolid=10005&campid=5336190399&customid=domain+for+sale&icep_item=110582666334&ipn=psmain&icep_vectorid=238401&kwid=902099&mtid=824&kw=rss">CELL PHONE Website for Sale - FREE DOMAIN</a><br /><table border="0" cellpadding="8"><tr><td><a href="http://rover.ebay.com/rover/1/711-53200-19255-0/1?icep_ff3=2&toolid=10005&campid=5336190399&customid=domain+for+sale&icep_item=110582666334&ipn=psmain&icep_vectorid=238401&kwid=902099&mtid=824&kw=rss"><img border="0" src="http://thumbs.ebaystatic.com/pict/110582666334_0.jpg"></a></td><td><strong>US &#36;9.99</strong><br /> End Date: Wednesday Sep-08-2010 11:55:02 PDT<br />Buy It Now for only: US &#36;9.99<br /><a href="http://rover.ebay.com/rover/1/711-53200-19255-0/1?icep_ff3=2&toolid=10005&campid=5336190399&customid=domain+for+sale&icep_item=110582666334&ipn=psmain&icep_vectorid=238401&kwid=902099&mtid=824&kw=rss">Buy it now</a> | <a href="http://rover.ebay.com/rover/1/711-53200-19255-0/1?ff3=4&toolid=10005&campid=5336190399&customid=domain+for+sale&mpre=http%3A%2F%2Fcgi1.ebay.com%2Fws%2FeBayISAPI.dll%3FMfcISAPICommand%3DMakeTrack%26item%3D110582666334%26ssPageName%3DRSS%3AB%3ASRCH%3AUS%3A104">Add to watch list</a></td></tr></table>
</div><div style="float:left;width:49%;margin-right:1%;height:245px;"><a rel="nofollow" href="http://rover.ebay.com/rover/1/711-53200-19255-0/1?icep_ff3=2&toolid=10005&campid=5336190399&customid=domain+for+sale&icep_item=110582667075&ipn=psmain&icep_vectorid=238401&kwid=902099&mtid=824&kw=rss">GPS NAVIGATION Website for Sale - FREE DOMAIN</a><br /><table border="0" cellpadding="8"><tr><td><a href="http://rover.ebay.com/rover/1/711-53200-19255-0/1?icep_ff3=2&toolid=10005&campid=5336190399&customid=domain+for+sale&icep_item=110582667075&ipn=psmain&icep_vectorid=238401&kwid=902099&mtid=824&kw=rss"><img border="0" src="http://thumbs.ebaystatic.com/pict/110582667075_0.jpg"></a></td><td><strong>US &#36;9.99</strong><br /> End Date: Wednesday Sep-08-2010 11:56:21 PDT<br />Buy It Now for only: US &#36;9.99<br /><a href="http://rover.ebay.com/rover/1/711-53200-19255-0/1?icep_ff3=2&toolid=10005&campid=5336190399&customid=domain+for+sale&icep_item=110582667075&ipn=psmain&icep_vectorid=238401&kwid=902099&mtid=824&kw=rss">Buy it now</a> | <a href="http://rover.ebay.com/rover/1/711-53200-19255-0/1?ff3=4&toolid=10005&campid=5336190399&customid=domain+for+sale&mpre=http%3A%2F%2Fcgi1.ebay.com%2Fws%2FeBayISAPI.dll%3FMfcISAPICommand%3DMakeTrack%26item%3D110582667075%26ssPageName%3DRSS%3AB%3ASRCH%3AUS%3A104">Add to watch list</a></td></tr></table>
</div></p>
<p>Related articles<br />
<a title="Transfer My Joomla! Website to a New Host" href="http://meaningfulblog.blogspot.com/2008/09/transfer-my-joomla-website-to-new-host.html" target="_blank">Transfer My Joomla! Website to a New Host</a><br />
<a title="How to Transfer Your WordPress blog to a New Host?" href="http://www.learningwp.com/how-to-transfer-your-wordpress-blog-to-a-new-host.html">How to Transfer Your WordPress blog to a New Host? </a><br />
<a title="How to Transfer Your Joomla! Website to a New Domain?" href="http://meaningfulblog.blogspot.com/2008/11/transfer-joomla-website-to-new-domain.html" target="_blank">How to Transfer Your Joomla! Website to a New Domain?</a></p>

<div class="sociable">
<div class="sociable_tagline">
<strong>Share and Enjoy:</strong>
</div>
<ul>
	<li class="sociablefirst"><a rel="nofollow"  target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.learningwp.com%2Ftransfer-my-wordpress-blog-to-a-new-domain.html&amp;title=How%20to%20Transfer%20My%20WordPress%20Blog%20to%20a%20New%20Domain%3F&amp;bodytext=I%27ve%20just%20successfully%20transferred%20my%20old%20WordPress%20blog%20which%20is%20in%20the%20subdomain%20of%20%2Fblog%2F%20to%20a%20new%20domain%20%28the%20current%20domain%29.%20This%20was%20done%20within%20the%20same%20host.%0D%0A%0D%0A%09First%20I%20used%20FTP%20to%20back%20up%20my%20old%20WordPress%20blog%20files%20to%20my%20laptop.%0D%0A%0D%0A%0D%0A%09Sec" title="Digg"><img src="http://www.learningwp.com/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://delicious.com/post?url=http%3A%2F%2Fwww.learningwp.com%2Ftransfer-my-wordpress-blog-to-a-new-domain.html&amp;title=How%20to%20Transfer%20My%20WordPress%20Blog%20to%20a%20New%20Domain%3F&amp;notes=I%27ve%20just%20successfully%20transferred%20my%20old%20WordPress%20blog%20which%20is%20in%20the%20subdomain%20of%20%2Fblog%2F%20to%20a%20new%20domain%20%28the%20current%20domain%29.%20This%20was%20done%20within%20the%20same%20host.%0D%0A%0D%0A%09First%20I%20used%20FTP%20to%20back%20up%20my%20old%20WordPress%20blog%20files%20to%20my%20laptop.%0D%0A%0D%0A%0D%0A%09Sec" title="del.icio.us"><img src="http://www.learningwp.com/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.learningwp.com%2Ftransfer-my-wordpress-blog-to-a-new-domain.html&amp;t=How%20to%20Transfer%20My%20WordPress%20Blog%20to%20a%20New%20Domain%3F" title="Facebook"><img src="http://www.learningwp.com/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.newsvine.com/_tools/seed&amp;save?u=http%3A%2F%2Fwww.learningwp.com%2Ftransfer-my-wordpress-blog-to-a-new-domain.html&amp;h=How%20to%20Transfer%20My%20WordPress%20Blog%20to%20a%20New%20Domain%3F" title="NewsVine"><img src="http://www.learningwp.com/wp-content/plugins/sociable/images/newsvine.png" title="NewsVine" alt="NewsVine" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://reddit.com/submit?url=http%3A%2F%2Fwww.learningwp.com%2Ftransfer-my-wordpress-blog-to-a-new-domain.html&amp;title=How%20to%20Transfer%20My%20WordPress%20Blog%20to%20a%20New%20Domain%3F" title="Reddit"><img src="http://www.learningwp.com/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.learningwp.com%2Ftransfer-my-wordpress-blog-to-a-new-domain.html&amp;title=How%20to%20Transfer%20My%20WordPress%20Blog%20to%20a%20New%20Domain%3F" title="StumbleUpon"><img src="http://www.learningwp.com/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fwww.learningwp.com%2Ftransfer-my-wordpress-blog-to-a-new-domain.html&amp;title=How%20to%20Transfer%20My%20WordPress%20Blog%20to%20a%20New%20Domain%3F&amp;annotation=I%27ve%20just%20successfully%20transferred%20my%20old%20WordPress%20blog%20which%20is%20in%20the%20subdomain%20of%20%2Fblog%2F%20to%20a%20new%20domain%20%28the%20current%20domain%29.%20This%20was%20done%20within%20the%20same%20host.%0D%0A%0D%0A%09First%20I%20used%20FTP%20to%20back%20up%20my%20old%20WordPress%20blog%20files%20to%20my%20laptop.%0D%0A%0D%0A%0D%0A%09Sec" title="Google Bookmarks"><img src="http://www.learningwp.com/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://buzz.yahoo.com/submit/?submitUrl=http%3A%2F%2Fwww.learningwp.com%2Ftransfer-my-wordpress-blog-to-a-new-domain.html&amp;submitHeadline=How%20to%20Transfer%20My%20WordPress%20Blog%20to%20a%20New%20Domain%3F&amp;submitSummary=I%27ve%20just%20successfully%20transferred%20my%20old%20WordPress%20blog%20which%20is%20in%20the%20subdomain%20of%20%2Fblog%2F%20to%20a%20new%20domain%20%28the%20current%20domain%29.%20This%20was%20done%20within%20the%20same%20host.%0D%0A%0D%0A%09First%20I%20used%20FTP%20to%20back%20up%20my%20old%20WordPress%20blog%20files%20to%20my%20laptop.%0D%0A%0D%0A%0D%0A%09Sec&amp;submitCategory=science&amp;submitAssetType=text" title="Yahoo! Buzz"><img src="http://www.learningwp.com/wp-content/plugins/sociable/images/yahoobuzz.png" title="Yahoo! Buzz" alt="Yahoo! Buzz" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://twitter.com/home?status=How%20to%20Transfer%20My%20WordPress%20Blog%20to%20a%20New%20Domain%3F%20-%20http%3A%2F%2Fwww.learningwp.com%2Ftransfer-my-wordpress-blog-to-a-new-domain.html" title="Twitter"><img src="http://www.learningwp.com/wp-content/plugins/sociable/images/twitter.png" title="Twitter" alt="Twitter" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://technorati.com/faves?add=http%3A%2F%2Fwww.learningwp.com%2Ftransfer-my-wordpress-blog-to-a-new-domain.html" title="Technorati"><img src="http://www.learningwp.com/wp-content/plugins/sociable/images/technorati.png" title="Technorati" alt="Technorati" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="https://favorites.live.com/quickadd.aspx?marklet=1&amp;url=http%3A%2F%2Fwww.learningwp.com%2Ftransfer-my-wordpress-blog-to-a-new-domain.html&amp;title=How%20to%20Transfer%20My%20WordPress%20Blog%20to%20a%20New%20Domain%3F" title="Live"><img src="http://www.learningwp.com/wp-content/plugins/sociable/images/live.png" title="Live" alt="Live" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fwww.learningwp.com%2Ftransfer-my-wordpress-blog-to-a-new-domain.html&amp;title=How%20to%20Transfer%20My%20WordPress%20Blog%20to%20a%20New%20Domain%3F&amp;source=Exploring+The+Internet+Exploring+the+web+-+Growing+my+experience+toward+my+online+business&amp;summary=I%27ve%20just%20successfully%20transferred%20my%20old%20WordPress%20blog%20which%20is%20in%20the%20subdomain%20of%20%2Fblog%2F%20to%20a%20new%20domain%20%28the%20current%20domain%29.%20This%20was%20done%20within%20the%20same%20host.%0D%0A%0D%0A%09First%20I%20used%20FTP%20to%20back%20up%20my%20old%20WordPress%20blog%20files%20to%20my%20laptop.%0D%0A%0D%0A%0D%0A%09Sec" title="LinkedIn"><img src="http://www.learningwp.com/wp-content/plugins/sociable/images/linkedin.png" title="LinkedIn" alt="LinkedIn" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.myspace.com/Modules/PostTo/Pages/?u=http%3A%2F%2Fwww.learningwp.com%2Ftransfer-my-wordpress-blog-to-a-new-domain.html&amp;t=How%20to%20Transfer%20My%20WordPress%20Blog%20to%20a%20New%20Domain%3F" title="MySpace"><img src="http://www.learningwp.com/wp-content/plugins/sociable/images/myspace.png" title="MySpace" alt="MySpace" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="" title="TwitThis"><img src="http://www.learningwp.com/wp-content/plugins/sociable/images/" title="TwitThis" alt="TwitThis" class="sociable-hovers" /></a></li>
	<li class="sociablelast"><a rel="nofollow"  target="_blank" href="" title="YahooMyWeb"><img src="http://www.learningwp.com/wp-content/plugins/sociable/images/" title="YahooMyWeb" alt="YahooMyWeb" class="sociable-hovers" /></a></li>
</ul>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.learningwp.com/transfer-my-wordpress-blog-to-a-new-domain.html/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>
