<?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>SysAdmin Valley &#187; mysql</title>
	<atom:link href="http://www.sysadminvalley.com/category/mysql/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.sysadminvalley.com</link>
	<description>I might as well write this stuff down so I remember it tomorrow</description>
	<lastBuildDate>Fri, 27 Aug 2010 14:33:42 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Search and Replace in MySQL</title>
		<link>http://www.sysadminvalley.com/2010/05/18/search-and-replace-in-mysql/</link>
		<comments>http://www.sysadminvalley.com/2010/05/18/search-and-replace-in-mysql/#comments</comments>
		<pubDate>Tue, 18 May 2010 12:59:51 +0000</pubDate>
		<dc:creator>mshields</dc:creator>
				<category><![CDATA[mysql]]></category>
		<category><![CDATA[SQL]]></category>

		<guid isPermaLink="false">http://www.sysadminvalley.com/?p=229</guid>
		<description><![CDATA[I do a lot of work with MySQL and I&#8217;ve had this reoccuring problem were I need to find some text in a table and replace it with new text. Like say I have a table of data that talks about dogs and I want to replace every occurrence of dog with cat. The old [...]]]></description>
			<content:encoded><![CDATA[<p>I do a lot of work with MySQL and I&#8217;ve had this reoccuring problem were I need to find some text in a table and replace it with new text.  Like say I have a table of data that talks about dogs and I want to replace every occurrence of dog with cat.  The old way I would search the entire table to find all rows that have the word dog in it, then that would give me a list to manually update each row.  I&#8217;d then rerun the query to see if I missed any.</p>
<p>Recently I found that MySQL supports a command called what else but &#8220;replace&#8221;.  So let&#8217;s say I have a table called &#8220;news&#8221; and in the table is a column called &#8220;content&#8221; and I wanted to replace all references of &#8220;dog&#8221; with &#8220;cat&#8221;, here is an example query.</p>
<blockquote><p>update news set content = replace(content, &#8220;dog&#8221;, &#8220;cat&#8221;);</p></blockquote>
<p>Very simple, it tells MySQL to replace the &#8220;content&#8221; field with what&#8217;s in the &#8220;content&#8221; field but replace &#8220;dog&#8221; with &#8220;cat&#8221;.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sysadminvalley.com/2010/05/18/search-and-replace-in-mysql/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Some interesting MySQL projects to check out</title>
		<link>http://www.sysadminvalley.com/2010/02/11/some-interesting-mysql-projects-to-check-out/</link>
		<comments>http://www.sysadminvalley.com/2010/02/11/some-interesting-mysql-projects-to-check-out/#comments</comments>
		<pubDate>Thu, 11 Feb 2010 17:49:04 +0000</pubDate>
		<dc:creator>mshields</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[replication]]></category>

		<guid isPermaLink="false">http://www.sysadminvalley.com/?p=187</guid>
		<description><![CDATA[While working on some MySQL stuff today I came across some interesting projects.  About 2 years ago I attended the Boston MySQL Meetup group which had a guest speaker (Patrick Galbraith) and he spoke about setting up MySQL in a Multi-Master setup.  This is where you have two MySQL database servers and each one is [...]]]></description>
			<content:encoded><![CDATA[<p>While working on some MySQL stuff today I came across some interesting projects.  About 2 years ago I attended the <a href="http://www.meetup.com/mysqlbos/calendar/6422572/?from=list&amp;offset=0" target="_blank">Boston MySQL Meetup group</a> which had a guest speaker (Patrick Galbraith) and he spoke about setting up MySQL in a Multi-Master setup.  This is where you have two MySQL database servers and each one is a slave of the other.  Today I came across two projects that look promising, the first is <a href="http://mysql-mmm.org/" target="_blank">Multi-Master Replication Manager for MySQL</a> (or MMM) and the second is <a href="http://code.google.com/p/flipper/" target="_blank">Flipper</a>.</p>
<p>MMM is a set of scripts that perform monitoring/failover and management of MySQL master-master replication.  Flipper is also a set of tools that manage which server in a Multi-Master setup is writable and which is readable by moving IP addresses based on the server&#8217;s role.  Both look very promising and hopefully soon I&#8217;ll have some free time to play around with them.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sysadminvalley.com/2010/02/11/some-interesting-mysql-projects-to-check-out/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Working with Percona&#8217;s MySQL and RPM dependency problems</title>
		<link>http://www.sysadminvalley.com/2010/02/11/working-with-perconas-mysql-and-rpm-dependency-problems/</link>
		<comments>http://www.sysadminvalley.com/2010/02/11/working-with-perconas-mysql-and-rpm-dependency-problems/#comments</comments>
		<pubDate>Thu, 11 Feb 2010 15:56:05 +0000</pubDate>
		<dc:creator>mshields</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[percona]]></category>
		<category><![CDATA[rpm]]></category>

		<guid isPermaLink="false">http://www.sysadminvalley.com/?p=185</guid>
		<description><![CDATA[I&#8217;ve started using Percona&#8217;s version of MySQL 5.1 and have run into a few issues trying to get other tools such as mytop or maatkit to install but have been having problems with RPM dependency&#8217;s.  I found the solution on this guy&#8217;s blog.  Basically, if you install the MySQL-client-percona, MySQL-percona, MySQL-server-percona, MySQL-shared-percona and Percona-XtraDB, instead [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve started using Percona&#8217;s version of MySQL 5.1 and have run into a few issues trying to get other tools such as mytop or maatkit to install but have been having problems with RPM dependency&#8217;s.  I found the solution on this <a href="http://neckbeard.stfudonny.com/2009/11/working-around-the-percona-mysql-rpm-dependancy-conflict-on-rhelcentos-5/" target="_blank">guy&#8217;s blog</a>.  Basically, if you install the MySQL-client-percona, MySQL-percona, MySQL-server-percona, MySQL-shared-percona and Percona-XtraDB, instead of installing MySQL-shared-percona, you should download and force upgrade (rpm -Uvh &#8211;force packagename) the MySQL-shared-compat library directly from MySQL.  Just make sure you get the same version from MySQL that you&#8217;re using of the Percona MySQL.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sysadminvalley.com/2010/02/11/working-with-perconas-mysql-and-rpm-dependency-problems/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
