<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	
	xmlns:georss="http://www.georss.org/georss"
	xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#"
	
	>
<channel>
	<title>
	Comments on: MySQL Global Search and Replace Script	</title>
	<atom:link href="https://www.krazyworks.com/mysql-global-search-and-replace/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.krazyworks.com/mysql-global-search-and-replace/</link>
	<description>Networking, Systems Design, and Disaster Recovery</description>
	<lastBuildDate>Tue, 12 May 2015 16:06:56 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.7.9</generator>
	<item>
		<title>
		By: FRANCESC MANEL ORTIZ BECERRA		</title>
		<link>https://www.krazyworks.com/mysql-global-search-and-replace/comment-page-1/#comment-274777</link>

		<dc:creator><![CDATA[FRANCESC MANEL ORTIZ BECERRA]]></dc:creator>
		<pubDate>Fri, 06 Feb 2015 20:20:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.krazyworks.com/?p=1115#comment-274777</guid>

					<description><![CDATA[I&#039;m trying to us this script, it seems great, but I&#039;ve got an error message when I use it...

ERROR 1064 (42000) at line 1: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near &#039;&#039;mdl_backup_logs&#039; set message    long = replace(&#039;message    long&#039;, &#039;192.168.0.8&#039;, &#039;{re&#039; at line 1

I&#039;m abolutely new in mysql syntax, but I think there is a problem with quotes (singles and doubles or so) in this line:


		echo &quot;update $db_table set ${tbl_column} = replace(${tbl_column}, &#039;${search_string}&#039;, &#039;{replacement_string}&#039;);&quot; &#124;
		$MYSQL $db_name

db_user=&quot;moodleuser&quot;, db_pass=&quot;moodle&quot;, db_name=&quot;moodleuser&quot;, search_for&quot;192.168.0.8&quot;, replace_with=&quot;192.168.0.2&quot;

My systems is a Ubuntu 14.04 upgraded, mysql-server 5.5.41.

Someone can help me?
Thanks a lot!]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m trying to us this script, it seems great, but I&#8217;ve got an error message when I use it&#8230;</p>
<p>ERROR 1064 (42000) at line 1: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near &#8221;mdl_backup_logs&#8217; set message    long = replace(&#8216;message    long&#8217;, &#8216;192.168.0.8&#8217;, &#8216;{re&#8217; at line 1</p>
<p>I&#8217;m abolutely new in mysql syntax, but I think there is a problem with quotes (singles and doubles or so) in this line:</p>
<p>		echo &#8220;update $db_table set ${tbl_column} = replace(${tbl_column}, &#8216;${search_string}&#8217;, &#8216;{replacement_string}&#8217;);&#8221; |<br />
		$MYSQL $db_name</p>
<p>db_user=&#8221;moodleuser&#8221;, db_pass=&#8221;moodle&#8221;, db_name=&#8221;moodleuser&#8221;, search_for&#8221;192.168.0.8&#8243;, replace_with=&#8221;192.168.0.2&#8243;</p>
<p>My systems is a Ubuntu 14.04 upgraded, mysql-server 5.5.41.</p>
<p>Someone can help me?<br />
Thanks a lot!</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Mc L		</title>
		<link>https://www.krazyworks.com/mysql-global-search-and-replace/comment-page-1/#comment-248114</link>

		<dc:creator><![CDATA[Mc L]]></dc:creator>
		<pubDate>Mon, 01 Apr 2013 03:08:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.krazyworks.com/?p=1115#comment-248114</guid>

					<description><![CDATA[Nothing pisses me off more than when something breaks even though its brand new.

I bough a whole set of replacement strings for my guitar. Since the 4th one broke. A week later the 4th string breaks again...

I checked the local store, they only had whole sets... 

]]></description>
			<content:encoded><![CDATA[<p>Nothing pisses me off more than when something breaks even though its brand new.</p>
<p>I bough a whole set of replacement strings for my guitar. Since the 4th one broke. A week later the 4th string breaks again&#8230;</p>
<p>I checked the local store, they only had whole sets&#8230; </p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Milk84		</title>
		<link>https://www.krazyworks.com/mysql-global-search-and-replace/comment-page-1/#comment-247724</link>

		<dc:creator><![CDATA[Milk84]]></dc:creator>
		<pubDate>Fri, 29 Mar 2013 14:34:01 +0000</pubDate>
		<guid isPermaLink="false">http://www.krazyworks.com/?p=1115#comment-247724</guid>

					<description><![CDATA[My high E broke on my acoustic and I only have electric replacement strings
]]></description>
			<content:encoded><![CDATA[<p>My high E broke on my acoustic and I only have electric replacement strings</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: gail C		</title>
		<link>https://www.krazyworks.com/mysql-global-search-and-replace/comment-page-1/#comment-247665</link>

		<dc:creator><![CDATA[gail C]]></dc:creator>
		<pubDate>Fri, 29 Mar 2013 01:44:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.krazyworks.com/?p=1115#comment-247665</guid>

					<description><![CDATA[I have a hunter ceiling fan that is remote controlled but we lost the remote about a month ago. The fan has pull strings but the one for the fan will not work. So what can I do to make the pull string for the fan to work.

Thanks
The wires i see coming from the fan are black, white, green, and a black wire with white stripes.
]]></description>
			<content:encoded><![CDATA[<p>I have a hunter ceiling fan that is remote controlled but we lost the remote about a month ago. The fan has pull strings but the one for the fan will not work. So what can I do to make the pull string for the fan to work.</p>
<p>Thanks<br />
The wires i see coming from the fan are black, white, green, and a black wire with white stripes.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Agent 47		</title>
		<link>https://www.krazyworks.com/mysql-global-search-and-replace/comment-page-1/#comment-247596</link>

		<dc:creator><![CDATA[Agent 47]]></dc:creator>
		<pubDate>Thu, 28 Mar 2013 15:33:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.krazyworks.com/?p=1115#comment-247596</guid>

					<description><![CDATA[My shoes from vans had shoe strings with a color specific to them,
And when tying them basically fell apart.
Is it possible to contact the vans company about getting replacement shoe strings for them?
]]></description>
			<content:encoded><![CDATA[<p>My shoes from vans had shoe strings with a color specific to them,<br />
And when tying them basically fell apart.<br />
Is it possible to contact the vans company about getting replacement shoe strings for them?</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: PillowMan1234		</title>
		<link>https://www.krazyworks.com/mysql-global-search-and-replace/comment-page-1/#comment-247552</link>

		<dc:creator><![CDATA[PillowMan1234]]></dc:creator>
		<pubDate>Thu, 28 Mar 2013 04:32:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.krazyworks.com/?p=1115#comment-247552</guid>

					<description><![CDATA[My saddle is too low and i am looking for a new one, i went to guitarcenter but they didn&#039;t have pre-made saddles, i would have had to shape it myself and i really dont want to do that, so where can i find a replacement?
]]></description>
			<content:encoded><![CDATA[<p>My saddle is too low and i am looking for a new one, i went to guitarcenter but they didn&#8217;t have pre-made saddles, i would have had to shape it myself and i really dont want to do that, so where can i find a replacement?</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Taylor G		</title>
		<link>https://www.krazyworks.com/mysql-global-search-and-replace/comment-page-1/#comment-247513</link>

		<dc:creator><![CDATA[Taylor G]]></dc:creator>
		<pubDate>Wed, 27 Mar 2013 21:31:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.krazyworks.com/?p=1115#comment-247513</guid>

					<description><![CDATA[I recently purchsed a G-310 and as was playing, one of my strings broke. Now, I&#039;m looking to purchase a replacement set of strings that are the same gauge as the stock strings. So what gauge are they?
]]></description>
			<content:encoded><![CDATA[<p>I recently purchsed a G-310 and as was playing, one of my strings broke. Now, I&#8217;m looking to purchase a replacement set of strings that are the same gauge as the stock strings. So what gauge are they?</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Alex		</title>
		<link>https://www.krazyworks.com/mysql-global-search-and-replace/comment-page-1/#comment-246786</link>

		<dc:creator><![CDATA[Alex]]></dc:creator>
		<pubDate>Fri, 22 Mar 2013 20:17:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.krazyworks.com/?p=1115#comment-246786</guid>

					<description><![CDATA[I was just tuning my guitar using harmonics and the D string snapped.  I have no idea how to replace it, but I do have a pack of replacement strings.  Can anyone please tell me how to replace it?  Thanks!  And I will choose a best answer if you&#039;re wondering.
]]></description>
			<content:encoded><![CDATA[<p>I was just tuning my guitar using harmonics and the D string snapped.  I have no idea how to replace it, but I do have a pack of replacement strings.  Can anyone please tell me how to replace it?  Thanks!  And I will choose a best answer if you&#8217;re wondering.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Ev dog		</title>
		<link>https://www.krazyworks.com/mysql-global-search-and-replace/comment-page-1/#comment-246721</link>

		<dc:creator><![CDATA[Ev dog]]></dc:creator>
		<pubDate>Fri, 22 Mar 2013 07:55:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.krazyworks.com/?p=1115#comment-246721</guid>

					<description><![CDATA[Hey guys,
I am working on making an admin panel for a script I created a few months back. One of the things I want to do in the admin panel is allow the users to customize the many different email messages the script sends out. An example of an email message is the following:

$customrequest = &quot;Hello &quot;.$username.&quot;, Your custom request for a &quot;.$req.&quot; has been approved and &quot;.$cost.&quot; &quot;.$currency.&quot; have been removed from your account.&quot;
$customrequestsubject = $title.&quot; - Custom Request Approved!&quot;

MailUpdateRequest($customrequest, $username, $customrequestsubject);

the mail function looks like this:

function MailUpdateRequest($message, $username, $sub){
global $requestemail, $contactemail, $title, $currency;
$request = mysql_query(&quot;SELECT * FROM members WHERE username =&#039;&quot;.$username.&quot;&#039;&quot;);
$email=mysql_result($request,0,&quot;email&quot;);
// multiple recipients
$to = &#039;&#039;.$email.&#039;&#039;;

// subject
$subject = $sub;

// headers
$headers = &#039;MIME-Version: 1.0&#039; . &quot;rn&quot;;
$headers .= &#039;Content-type: text/html; charset=iso-8859-1&#039; . &quot;rn&quot;;
$headers .= &#039;To: &#039;.$username.&#039;  &#039;. &quot;rn&quot;;
$headers .= &#039;From: &#039;.$title.&#039; Request Department &#039; . &quot;rn&quot;;

// Mail it
mail($email, $subject, $message, $headers);
}

Essentially, I want to put a text field in the admin panel so any non-programmer could customize this message. Below the text field I will explain the different php variables they can use and how to use them... only issue is I can&#039;t just directly read the mysql fields into the variables or else the php variables get read in as text.

Help is very very much appreciated, financial compensation available if necessary.
]]></description>
			<content:encoded><![CDATA[<p>Hey guys,<br />
I am working on making an admin panel for a script I created a few months back. One of the things I want to do in the admin panel is allow the users to customize the many different email messages the script sends out. An example of an email message is the following:</p>
<p>$customrequest = &#8220;Hello &#8220;.$username.&#8221;, Your custom request for a &#8220;.$req.&#8221; has been approved and &#8220;.$cost.&#8221; &#8220;.$currency.&#8221; have been removed from your account.&#8221;<br />
$customrequestsubject = $title.&#8221; &#8211; Custom Request Approved!&#8221;</p>
<p>MailUpdateRequest($customrequest, $username, $customrequestsubject);</p>
<p>the mail function looks like this:</p>
<p>function MailUpdateRequest($message, $username, $sub){<br />
global $requestemail, $contactemail, $title, $currency;<br />
$request = mysql_query(&#8220;SELECT * FROM members WHERE username ='&#8221;.$username.&#8221;&#8216;&#8221;);<br />
$email=mysql_result($request,0,&#8221;email&#8221;);<br />
// multiple recipients<br />
$to = &#8221;.$email.&#8221;;</p>
<p>// subject<br />
$subject = $sub;</p>
<p>// headers<br />
$headers = &#8216;MIME-Version: 1.0&#8217; . &#8220;rn&#8221;;<br />
$headers .= &#8216;Content-type: text/html; charset=iso-8859-1&#8217; . &#8220;rn&#8221;;<br />
$headers .= &#8216;To: &#8216;.$username.&#8217;  &#8216;. &#8220;rn&#8221;;<br />
$headers .= &#8216;From: &#8216;.$title.&#8217; Request Department &#8216; . &#8220;rn&#8221;;</p>
<p>// Mail it<br />
mail($email, $subject, $message, $headers);<br />
}</p>
<p>Essentially, I want to put a text field in the admin panel so any non-programmer could customize this message. Below the text field I will explain the different php variables they can use and how to use them&#8230; only issue is I can&#8217;t just directly read the mysql fields into the variables or else the php variables get read in as text.</p>
<p>Help is very very much appreciated, financial compensation available if necessary.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: hans		</title>
		<link>https://www.krazyworks.com/mysql-global-search-and-replace/comment-page-1/#comment-206208</link>

		<dc:creator><![CDATA[hans]]></dc:creator>
		<pubDate>Wed, 15 Aug 2012 09:20:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.krazyworks.com/?p=1115#comment-206208</guid>

					<description><![CDATA[thank you so much!]]></description>
			<content:encoded><![CDATA[<p>thank you so much!</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: HoverFusion		</title>
		<link>https://www.krazyworks.com/mysql-global-search-and-replace/comment-page-1/#comment-173108</link>

		<dc:creator><![CDATA[HoverFusion]]></dc:creator>
		<pubDate>Thu, 14 Jun 2012 20:02:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.krazyworks.com/?p=1115#comment-173108</guid>

					<description><![CDATA[This was very helpfull. Worked like a charm. I used this to change entries in my Drupal based web-site, to remove some hard-coded links.
You miss some instructions for newbies, though.

IOne can create a file on linux machine typing
&lt;code&gt;vi search_replace.sh&lt;/code&gt;
vi (linux text editor present on many linux boxes) will create a search_replace.sh.
Then you can copy paste the code. Vi commands are &lt;a href=&quot;http://www.ccsf.edu/Pub/Fac/vi.html&quot; rel=&quot;nofollow&quot;&gt;here&lt;/a&gt;]]></description>
			<content:encoded><![CDATA[<p>This was very helpfull. Worked like a charm. I used this to change entries in my Drupal based web-site, to remove some hard-coded links.<br />
You miss some instructions for newbies, though.</p>
<p>IOne can create a file on linux machine typing<br />
<code>vi search_replace.sh</code><br />
vi (linux text editor present on many linux boxes) will create a search_replace.sh.<br />
Then you can copy paste the code. Vi commands are <a href="http://www.ccsf.edu/Pub/Fac/vi.html" rel="nofollow">here</a></p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Asif		</title>
		<link>https://www.krazyworks.com/mysql-global-search-and-replace/comment-page-1/#comment-76094</link>

		<dc:creator><![CDATA[Asif]]></dc:creator>
		<pubDate>Mon, 31 Oct 2011 23:06:08 +0000</pubDate>
		<guid isPermaLink="false">http://www.krazyworks.com/?p=1115#comment-76094</guid>

					<description><![CDATA[Worked like a charm. Good one.]]></description>
			<content:encoded><![CDATA[<p>Worked like a charm. Good one.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Robin van Emden		</title>
		<link>https://www.krazyworks.com/mysql-global-search-and-replace/comment-page-1/#comment-37721</link>

		<dc:creator><![CDATA[Robin van Emden]]></dc:creator>
		<pubDate>Fri, 10 Jun 2011 13:22:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.krazyworks.com/?p=1115#comment-37721</guid>

					<description><![CDATA[Works fine, thank you!]]></description>
			<content:encoded><![CDATA[<p>Works fine, thank you!</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: admin		</title>
		<link>https://www.krazyworks.com/mysql-global-search-and-replace/comment-page-1/#comment-33106</link>

		<dc:creator><![CDATA[admin]]></dc:creator>
		<pubDate>Wed, 27 Apr 2011 16:44:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.krazyworks.com/?p=1115#comment-33106</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://www.krazyworks.com/mysql-global-search-and-replace/comment-page-1/#comment-33098&quot;&gt;Newbe&lt;/a&gt;.

Since you are asking, I presume you are running Windows. This script will only work on Linux/Unix computers. You save it to a file like &quot;search_replace.sh&quot;; make it executable by running &quot;chmod 755 search_replace.sh&quot;; and then you run it by typing &quot;./search_replace.sh&quot;. But not on Windows, sorry.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://www.krazyworks.com/mysql-global-search-and-replace/comment-page-1/#comment-33098">Newbe</a>.</p>
<p>Since you are asking, I presume you are running Windows. This script will only work on Linux/Unix computers. You save it to a file like &#8220;search_replace.sh&#8221;; make it executable by running &#8220;chmod 755 search_replace.sh&#8221;; and then you run it by typing &#8220;./search_replace.sh&#8221;. But not on Windows, sorry.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Newbe		</title>
		<link>https://www.krazyworks.com/mysql-global-search-and-replace/comment-page-1/#comment-33098</link>

		<dc:creator><![CDATA[Newbe]]></dc:creator>
		<pubDate>Wed, 27 Apr 2011 13:38:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.krazyworks.com/?p=1115#comment-33098</guid>

					<description><![CDATA[OK, but how do I run the script?]]></description>
			<content:encoded><![CDATA[<p>OK, but how do I run the script?</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Find, Search, Replace, and Delete In A WordPress Database - WordCast		</title>
		<link>https://www.krazyworks.com/mysql-global-search-and-replace/comment-page-1/#comment-20242</link>

		<dc:creator><![CDATA[Find, Search, Replace, and Delete In A WordPress Database - WordCast]]></dc:creator>
		<pubDate>Sun, 28 Nov 2010 22:58:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.krazyworks.com/?p=1115#comment-20242</guid>

					<description><![CDATA[[...] KrazyWorks &#8211; MySQL Global Search and Replace Script [...]]]></description>
			<content:encoded><![CDATA[<p>[&#8230;] KrazyWorks &#8211; MySQL Global Search and Replace Script [&#8230;]</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Sherra		</title>
		<link>https://www.krazyworks.com/mysql-global-search-and-replace/comment-page-1/#comment-15358</link>

		<dc:creator><![CDATA[Sherra]]></dc:creator>
		<pubDate>Fri, 27 Aug 2010 02:39:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.krazyworks.com/?p=1115#comment-15358</guid>

					<description><![CDATA[great script - thank you!  Worked without issues and saved me alot of time.  Again, thank you.  :-)]]></description>
			<content:encoded><![CDATA[<p>great script &#8211; thank you!  Worked without issues and saved me alot of time.  Again, thank you.  :-)</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
