<?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>Tech At Hand Dot Net &#187; MySql</title>
	<atom:link href="http://techathand.net/tag/mysql/feed/" rel="self" type="application/rss+xml" />
	<link>http://techathand.net</link>
	<description>Philippines, Blogging, SEO &#38; Tips</description>
	<lastBuildDate>Thu, 09 Feb 2012 05:31:14 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>Search and Replace Function in MySQL thru MyPhp Admin</title>
		<link>http://techathand.net/search-and-replace-function-in-mysql-thru-myphp-admin/</link>
		<comments>http://techathand.net/search-and-replace-function-in-mysql-thru-myphp-admin/#comments</comments>
		<pubDate>Tue, 23 Jun 2009 12:41:50 +0000</pubDate>
		<dc:creator>Dexter Panganiban</dc:creator>
				<category><![CDATA[Wordpress]]></category>
		<category><![CDATA[MySql]]></category>
		<category><![CDATA[Php]]></category>

		<guid isPermaLink="false">http://techathand.net/2009/06/search-and-replace-function-in-mysql-thru-myphp-admin/</guid>
		<description><![CDATA[Warning if you don&#8217;t know how to use MySql Query better make a trial to those database that you will not loose anything if your ruin it.. You have been warned. !!! If you want to search and update any broken links that you may find using your Google Webmaster Tools, changing it from MySQL [...]]]></description>
			<content:encoded><![CDATA[<p>Warning if you don&#8217;t know how to use MySql Query better make a trial to those database that you will not loose anything if your ruin it.. You have been warned. !!! </p>
<p>If you want to search and update any broken links that you may find using your <a rel="nofollow" href="http://www.techathand.net/google-webmaster-tools/">Google Webmaster Tools</a>, changing it from MySQL will be much easier than looking it at your WordPress Edit Page. So here is the Step by Step Solution from that problem. </p>
<ol>
<li>Check the broken links at your Google Webmaster tools </li>
<li>If you find out the broken links , you must know on where do you want this to be redirected permanently. Since we need to replace those broken link to a live live via Search and Replace function at MySql Php My Admin. </li>
<li>Edit below syntax , and paste is to the query tab at your MY Sql Dashboard </li>
</ol>
<blockquote><p>UPDATE DatabaseName SET post_content = REPLACE(post_content,&quot;String#1&quot;,&quot;String#2&quot;) </p>
</blockquote>
<p>The Database Name is the name of your Post Database ( i.e Wpk20_post )    <br />post_content is part of Post database where you want to change the broken string.     <br />String#1 is the broken links or URL     <br />String#2 is the target links or URL </p>
<p> <span id="more-2948"></span>
<p>Example : </p>
<p><code>UPDATE Wpk20_post SET post_content = REPLACE(post_content,&quot;http://techathand.net/klasjdhasd&quot;,&quot;http://techathand.net&quot;)</code></p>
<p>It will mean that you like to update all links pointing to <code>http://techathand.net/klasjdhasd</code> into http://techathand.net, Even if the link shows 100 times, the query will change all the 100 data in database that match the query. </p>
<p>This method is really applicable if you are changing domain name and you don&#8217;t want to ruin the linking structure of your blog and return a Error 404 Page. </p>
<p>Well I actually tried to research this one because there are lots of broken links in this blog that was made when I shifted from blogspot to WordPress 2 years ago. Yup it takes me 2 years before I tried to clean up my database. </p>
<p>Ooopss for sure I am not the only one who have this habit <img src='http://techathand.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  </p>
<iframe src='http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Ftechathand.net%2Fsearch-and-replace-function-in-mysql-thru-myphp-admin%2F&amp;layout=button_count&amp;show_faces=true&amp;width=280&amp;action=recommend&amp;colorscheme=light&amp;height=30' scrolling='no' frameborder='0' style='border:none; overflow:hidden; height:30px' allowTransparency='true'></iframe><h4>Incoming search terms:</h4><ul><li><a href="http://techathand.net/search-and-replace-function-in-mysql-thru-myphp-admin/" title="searh in myphp">searh in myphp</a></li></ul><p><center>&copy; Dexter Panganiban - visit the <a href="http://techathand.net/about-2/">Tech At Hand Dot Net </a> for more great content. <br />
<a href="http://www.facebook.com/dexter.panganiban">Dexter Panganiban Facebook</a></center>     <br />
<center>Please Add Tech at Hand in <a href="https://plus.google.com/101055354305554798960/posts">Techathand@Google Plus</a> and Twitter <a href="http://twitter.com/techathand">@techathand </a> </center>     ]]></content:encoded>
			<wfw:commentRss>http://techathand.net/search-and-replace-function-in-mysql-thru-myphp-admin/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

