<?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>It&#039;s Not Rocket Surgery &#187; mysqld_multi</title>
	<atom:link href="http://blog.craiglpatterson.com/tag/mysqld_multi/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.craiglpatterson.com</link>
	<description>This is what is distracting me right now.</description>
	<lastBuildDate>Wed, 04 May 2011 17:02:48 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>QA Help Wanted</title>
		<link>http://blog.craiglpatterson.com/2010/02/23/qa-help-wanted/</link>
		<comments>http://blog.craiglpatterson.com/2010/02/23/qa-help-wanted/#comments</comments>
		<pubDate>Tue, 23 Feb 2010 22:24:28 +0000</pubDate>
		<dc:creator>craiglp</dc:creator>
				<category><![CDATA[Corporate IT Life]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[mysqld_multi]]></category>

		<guid isPermaLink="false">http://blog.craiglpatterson.com/?p=170</guid>
		<description><![CDATA[MySQL Sun Oracle needs QA help. How do I know this? Because I&#8217;ve used their products. We use MySQL 5.1.x &#8220;Enterprise&#8221; on several servers at work. We have several production servers that are replicated to slave servers as hot spares, reporting servers, and to a disaster recovery server. As part of our setup one of [...]]]></description>
			<content:encoded><![CDATA[<p><span style="text-decoration: line-through;">MySQL</span> <span style="text-decoration: line-through;">Sun</span> Oracle needs QA help. How do I know this? Because I&#8217;ve used their products.</p>
<p>We use MySQL 5.1.x &#8220;Enterprise&#8221; on several servers at work. We have several production servers that are replicated to slave servers as hot spares, reporting servers, and to a disaster recovery server. As part of our setup one of our backup servers needs to replicate from two different servers and databases to two different local databases. So, I need to run two instances of MySQL. There are three basic ways to accomplish this: run two instances of MySQL directing each to a different configuration file with appropriate port, directory, pid file settings; use mysqladmin to manage multiple instances; use mysqld_multi to start multiple instances. Mysqladmin has been deprecated and will be removed in 5.4, so I&#8217;m not investing energy in that solution. Option one will work, it just means more files to manage. Mysqld_multi allows using a single configuration file with definitions for each server instance. It&#8217;s straightforward and pretty easy to set up.</p>
<p>Mysqld_multi is a Perl script that parses a single config file containing multiple server instance definitions. There is just one problem. It doesn&#8217;t work. It throws the following error:</p>
<pre>Unmatched right curly bracket at /usr/bin/mysqld_multi line 171, at end of line
syntax error at /usr/bin/mysqld_multi line 171, near "}"
Execution of /usr/bin/mysqld_multi aborted due to compilation errors.
</pre>
<p>As a programmer, and sysadmin, I expect that an error like that must be the result of some combination of version incompatabilities or poor configuration. Since I had just upgraded MySQL to the latest version this made sense. I updated all the packages on the server, rebooted, tried again.</p>
<pre>Unmatched right curly bracket at /usr/bin/mysqld_multi line 171, at end of line
syntax error at /usr/bin/mysqld_multi line 171, near "}"
Execution of /usr/bin/mysqld_multi aborted due to compilation errors.</pre>
<p>After way too much effort I pulled the script into a language aware editor and found that the script did, in fact, have an unmatched right curly bracket. I removed it. I ran it again, thinking that this couldn&#8217;t possibly be the problem. A large technology company like <span style="text-decoration: line-through;">Sun</span> Oracle wouldn&#8217;t let a product out the door with this kind of fundimental bug. They must have run this script at some time and found this error. No, they didn&#8217;t. Once the errant bracket was removed, the script ran. Perfectly.</p>
<p>Coincidentally, I just received our quote from <span style="text-decoration: line-through;">Sun</span> Oracle for &#8220;enterprise&#8221; support for MySQL. Seems kinda high.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.craiglpatterson.com/2010/02/23/qa-help-wanted/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

