<?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>BlueGecko Denmark</title>
	<atom:link href="https://bluegecko.dk/category/mysql/feed/" rel="self" type="application/rss+xml" />
	<link>https://bluegecko.dk</link>
	<description>Your remote dba</description>
	<lastBuildDate>Fri, 02 Sep 2011 21:27:25 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.5.2</generator>
	<item>
		<title>About MySQL storage engines and replication</title>
		<link>https://bluegecko.dk/about-mysql-storage-engines-and-replication/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=about-mysql-storage-engines-and-replication</link>
		
		<dc:creator><![CDATA[pgalbraith]]></dc:creator>
		<pubDate>Fri, 02 Sep 2011 21:27:25 +0000</pubDate>
				<category><![CDATA[MySQL]]></category>
		<guid isPermaLink="false">http://www.bluegecko.net/?p=3306</guid>

					<description><![CDATA[I know most articles are more about DBA issues, however, being a MySQL DBA means that you have several hats that you can where&#8211; data architect, application developer, MySQL source developer, and often good old fashioned DBA. I recently had an interesting problem with a particular project I was working on that required the MySQL [...]


Related posts:<ol><li><a href="http://technocation.org/content/oursql-episode-45%3A-hackathon-success!-(mysql-%2526gt;-mongodb-replication)" rel="bookmark" title="Permanent Link: OurSQL Episode 45: Hackathon Success! (MySQL -&#62; MongoDB replication)">OurSQL Episode 45: Hackathon Success! (MySQL -&#62; MongoDB replication)</a></li>
<li><a href="http://www.bluegecko.net/mysql/semi-synchronous-replication-in-mysql-5-5/" rel="bookmark" title="Permanent Link: Semi-Synchronous Replication in MySQL 5.5">Semi-Synchronous Replication in MySQL 5.5</a></li>
<li><a href="http://www.bluegecko.net/mysql/mysql-5-5-ga-announcment/" rel="bookmark" title="Permanent Link: MySQL 5.5 GA announcement">MySQL 5.5 GA announcement</a></li>
</ol>]]></description>
										<content:encoded><![CDATA[<p>I know most articles are more about DBA issues, however, being a MySQL DBA means that you have several hats that you can where&#8211; data architect, application developer, MySQL source developer, and often good old fashioned DBA. I recently had an interesting problem with a particular project I was working on that required the MySQL source code developer hat that I used to wear much more often during the black vodka era of working for MySQL AB. </p>
<p>This was case of a custom storage engine a client has, and whenever I would try to use statement-based replication, I would encounter an error upon running DML statements on the master:</p>
<pre>ERROR 1598 (HY000): Binary logging not possible.
Message: Statement-based format required for this statement,
but not allowed by this combination of engines</pre>
<p>Despite having worked on several storage engines, written Federated/FederatedX, I couldn&#8217;t remember what about a storage engine pertains to replication, nor did it make sense to me that the storage engine would have anything to do with it since binary logging occurs at a higher level than at the storage engine. </p>
<p>I was talking to Monty about it, and he pointed me to look at ha_myisam.cc:</p>
<pre>
ha_myisam::ha_myisam(handlerton *hton, TABLE_SHARE *table_arg)
  :handler(hton, table_arg), file(0),
  int_table_flags(HA_NULL_IN_KEY | HA_CAN_FULLTEXT | HA_CAN_SQL_HANDLER |
                  HA_BINLOG_ROW_CAPABLE | HA_BINLOG_STMT_CAPABLE |
                  HA_DUPLICATE_POS | HA_CAN_INDEX_BLOBS | HA_AUTO_PART_KEY |
                  HA_FILE_BASED | HA_CAN_GEOMETRY | HA_NO_TRANSACTIONS |
                  HA_CAN_INSERT_DELAYED | HA_CAN_BIT_FIELD | HA_CAN_RTREEKEYS |
                  HA_HAS_RECORDS | HA_STATS_RECORDS_IS_EXACT),
   can_enable_indexes(1)
{}
</pre>
<p>How one forgets simple but important things over time, that being me! These flags are very important and determine the capabilities of a storage engine.  I will post about what each is at a later time. Suffice to say, I had searched Google to no avail, and by posting this article, if you are trying to get replication working for a given storage engine, this will come up! The important flags you see here are <code>HA_BINLOG_ROW_CAPABLE</code> and <code>HA_BINLOG_STMT_CAPABLE</code>. I never used to pay as much attention to these particular flags when developing Federated because I would often use flags from another storage engine and was focused on flags that pertained more to what Federated could do and could not do. However, these flags are required if you want replication to work.</p>
<p>The flags in the client storage engine did have <code>HA_BINLOG_ROW_CAPABLE</code> but not <code>HA_BINLOG_STMT_CAPABLE</code>. Additionally, the flag <code>HA_HAS_OWN_BINLOGGING</code> was present. This is a show-stopper. The only engine that has this is NDB cluster. </p>
<p>No harm done, with the correct flags added, the custom storage engine now replicates!</p>
<p>Happy storage engine hacking!</p>
<p>Related posts:</p>
<ol>
<li><a href='http://technocation.org/content/oursql-episode-45%3A-hackathon-success!-(mysql-%2526gt;-mongodb-replication)' rel='bookmark' title='Permanent Link: OurSQL Episode 45: Hackathon Success! (MySQL -&gt; MongoDB replication)'>OurSQL Episode 45: Hackathon Success! (MySQL -&gt; MongoDB replication)</a></li>
<li><a href='http://www.bluegecko.dk/mysql/semi-synchronous-replication-in-mysql-5-5/' rel='bookmark' title='Permanent Link: Semi-Synchronous Replication in MySQL 5.5'>Semi-Synchronous Replication in MySQL 5.5</a></li>
<li><a href='http://www.bluegecko.dk/mysql/mysql-5-5-ga-announcment/' rel='bookmark' title='Permanent Link: MySQL 5.5 GA announcement'>MySQL 5.5 GA announcement</a></li>
</ol>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>DBD::mysql 4.020 Released</title>
		<link>https://bluegecko.dk/dbdmysql-4-020-released/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=dbdmysql-4-020-released</link>
		
		<dc:creator><![CDATA[pgalbraith]]></dc:creator>
		<pubDate>Wed, 24 Aug 2011 13:19:36 +0000</pubDate>
				<category><![CDATA[MySQL]]></category>
		<guid isPermaLink="false">http://www.bluegecko.net/?p=3285</guid>

					<description><![CDATA[I&#8217;m pleased to announce the release of DBD::mysql, the MySQL Perl client, 4.020. The release has several great fixes provided by the community, and in particular from Masahiro Chiba, who fixed several issues pertaining to prepared statement support as well as UTF8 support, something that I myself have had a difficult time fixing and testing. [...]


Related posts:<ol><li><a href="http://www.bluegecko.net/mysql/dbddrizzle-301-released/" rel="bookmark" title="Permanent Link: DBD::drizzle .301 released">DBD::drizzle .301 released</a></li>
<li><a href="http://www.bluegecko.net/mysql/dbdmysql-4-018-released/" rel="bookmark" title="Permanent Link: DBD::mysql 4.018 released">DBD::mysql 4.018 released</a></li>
<li><a href="http://www.bluegecko.net/mysql/memcached-functions-for-mysql-1-1-released/" rel="bookmark" title="Permanent Link: Memcached Functions for MySQL 1.1 released!">Memcached Functions for MySQL 1.1 released!</a></li>
</ol>]]></description>
										<content:encoded><![CDATA[<p>I&#8217;m pleased to announce the release of DBD::mysql, the MySQL Perl client, 4.020. The release has several great fixes provided by the community, and in particular from Masahiro Chiba, who fixed several issues pertaining to prepared statement support as well as UTF8 support, something that I myself have had a difficult time fixing and testing.</p>
<p>From the Change log:</p>
<p>2011-08-15 Patrick Galbraith  (4.020)<br />
* Numerous (!! Thank you!!) fixes for prepared statements: Masahiro Chiba<br />
	&#8211; Chop blanks fixed<br />
	&#8211; UTF8 improvements<br />
	&#8211; fixed memory allocation for BLOBs<br />
	&#8211; auto-reconnect<br />
* Fix in leak test, which failed sometime due to first assignment $prev_size over<br />
paging (Masahiro Chiba)<br />
* Catalog test allows use of schemas other than &#8216;test&#8217; (Masahiro Chiba)<br />
* Documentation fix for auto_reconnect (Karen Etheridge )<br />
* Win32 and general installation fixes (Alexandr Ciornii, http://chorny.net)</p>
<p>I want to thank Masahiro, Karen and Alexandr for their contributions, which made this release possible. I want to again thank everyone who submits bugs as well as simply using this driver!</p>
<p>The release can be found at:</p>
<p>http://search.cpan.org/~capttofu/DBD-mysql-4.020/</p>
<p>As well as simply installing DBD::mysql from CPAN.</p>
<p>Related posts:</p>
<ol>
<li><a href='http://www.bluegecko.dk/mysql/dbddrizzle-301-released/' rel='bookmark' title='Permanent Link: DBD::drizzle .301 released'>DBD::drizzle .301 released</a></li>
<li><a href='http://www.bluegecko.dk/mysql/dbdmysql-4-018-released/' rel='bookmark' title='Permanent Link: DBD::mysql 4.018 released'>DBD::mysql 4.018 released</a></li>
<li><a href='http://www.bluegecko.dk/mysql/memcached-functions-for-mysql-1-1-released/' rel='bookmark' title='Permanent Link: Memcached Functions for MySQL 1.1 released!'>Memcached Functions for MySQL 1.1 released!</a></li>
</ol>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Life made easier: Facebook’s Online Schema Change for MySQL</title>
		<link>https://bluegecko.dk/life-made-easier-facebooks-online-schema-change-for-mysql/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=life-made-easier-facebooks-online-schema-change-for-mysql</link>
		
		<dc:creator><![CDATA[pgalbraith]]></dc:creator>
		<pubDate>Thu, 28 Jul 2011 02:07:30 +0000</pubDate>
				<category><![CDATA[MySQL]]></category>
		<guid isPermaLink="false">http://www.bluegecko.net/?p=3266</guid>

					<description><![CDATA[So often, you have a task where you need to perform an alteration of a huge table while not wanting to affect the operation of your website. With an alter table, MySQL will internally lock the table in question, create a temporary table with the new table definition, copy the date, then drop the current [...]


Related posts:<ol><li><a href="http://www.bluegecko.net/mysql/recovering-a-schema-from-innodb-frm-files/" rel="bookmark" title="Permanent Link: Recovering a Schema From InnoDB .frm Files">Recovering a Schema From InnoDB .frm Files</a></li>
<li><a href="http://www.bluegecko.net/mysql/using-checksums-to-ensure-table-consistency-in-mysql/" rel="bookmark" title="Permanent Link: Using Checksums to Ensure Table Consistency in MySQL">Using Checksums to Ensure Table Consistency in MySQL</a></li>
<li><a href="http://technocation.org/content/oursql-episode-50%3A-mysql-facebook,-current-and-future" rel="bookmark" title="Permanent Link: OurSQL Episode 50: MySQL at Facebook, Current and Future">OurSQL Episode 50: MySQL at Facebook, Current and Future</a></li>
</ol>]]></description>
										<content:encoded><![CDATA[<h3><span style="font-size: 13px; font-weight: normal;">So often, you have a task where you need to perform an alteration of a huge table while not wanting to affect the operation of your website. With an alter table, MySQL will internally lock the table in question, create a temporary table with the new table definition, copy the date, then drop the current table, then rename the temporary table to the current table, then unlock tables&#8211; not acceptable for a running website!</span></h3>
<p><span id="more-3266"></span></p>
<p>One way of being able to alter a table without affecting the database (read website application) is using a replicated architecture, particularly having a dual master setup, making the change on the inactive master, then switching, lather, rinse repeat. What if you don&#8217;t have a replicated architecture but need some way of making this alteration?</p>
<p>Facebook, a company who I&#8217;ve heard has a fair amount of data, would be a likely place to have problems and challenges that we all face as developers and database administrators &#8212; by a thousand-fold! They have a huge number of tables spread out over multitudes of servers and needed the ability to alter these tables online. Hence, the Online Schema Change for MySQL came about.</p>
<h3>Description</h3>
<p>What is the Online Schema Change for MySQL? It&#8217;s a tool Facebook wrote, a PHP library, that has methods and a simple API for being able to perform DDL changes to a database table without having any down-time or having to use replication to perform these alterations. This is done in several phases:</p>
<ul>
<li>Copy Phase &#8212; copy data to the table with the new table definition</li>
<li>Capture changes &#8212; through the use of triggers and a &#8220;delta&#8221; table to record those those change</li>
<li>Replay changes &#8212; replay changes from the delta table to the new table</li>
<li>Cutover &#8212; lock the original table, delta table, new table, replay changes one more time, rename original table as an old table, new table to original table, unlock tables</li>
</ul>
<p>These steps have to happen as atomically as possible and this tool has done a great job of ensuring this atomicity. For more intricate details about this tool, Mark Callaghan has a good post at: <a href="http://www.facebook.com/notes/mysql-at-facebook/online-schema-change-for-mysql/430801045932">http://www.facebook.com/notes/mysql-at-facebook/online-schema-change-for-mysql/430801045932</a></p>
<p>What I wanted to achieve for this post is to share my experience using this tool. I decided a good test would be to run a perl script that inserts a lot of data into a table and alter the table using Online Schema Change tool while the insert tool runs.</p>
<h3>Writing a PHP script to use OSC</h3>
<p>First, of course, you need to get the PHP library:</p>
<p><a href="http://bazaar.launchpad.net/~mysqlatfacebook/mysqlatfacebook/tools/annotate/head%3A/osc/OnlineSchemaChange.php">http://bazaar.launchpad.net/~mysqlatfacebook/mysqlatfacebook/tools/annotate/head:/osc/OnlineSchemaChange.php</a></p>
<p>Download this PHP library. What I did was look at the source to see how to use it. The summary of how to use it can best be described in my alteration script I wrote, called interestingly alter.php. I will comment on each part of the script inline:</p>
<pre>#!/usr/bin/env php

&lt;?php</pre>
<p>First of all, you want to import the library</p>
<pre>require_once('./OnlineSchemaChange.php');</pre>
<p>These flags set first of all the ability to run this tool on versions other than 5.1.47 (they&#8217;ve only tested with 5.1.47 and 5.0.84), which I was using Maria 5.3.0-MariaDB-alpha. I tried to also OR OSC_FLAGS_FORCE_CLEANUP, but either I&#8217;m doing something wrong or it&#8217;s not working properly, so I have deal with cleaning up the delta table afterward:</p>
<pre>$flags = OSC_FLAGS_ACCEPT_VERSION; # | OSC_FLAGS_FORCE_CLEANUP;

/* you have to set this otherwise get warnings */
date_default_timezone_set('UTC');</pre>
<p>Next, an OnlineSchemaChange object is instantiated. This is the object handle you will run your alterations with. Upon instantiation, you provide:</p>
<ul>
<li>Database user</li>
<li>Database password</li>
<li>Schema name</li>
<li>Table you will be altering</li>
<li>Alteration statement (DDL statement)</li>
<li>Output folder. This is where data is selected into and from. Very importantly (!) you must make this readable and writeable by both MySQL and the user you are running the Online Schema Change tool for. What I did was created a directory, <code>/tmp/outdir</code>, and made the permissions 777.</li>
<li>Batchsize load &#8212; how many records to select at a time to the outfile.</li>
<li>amount of time a transaction runs before the tool quits</li>
<li>Log file directory &#8212; this is where the logs for the tool will be written to. I created this directory in  /home/ec2-user/logs</li>
</ul>
<pre>      /* instantiate */
      $osc = new OnlineSchemaChange('/tmp/mysql.sock',
                              'username',
                              's3kr1t',
                              'test',
                              't1',
                              'alter table t1 add column col5 varchar(128)',
                              /* output folder - MySQL user must be able to
                              write to this directory! */
                              '/tmp/output/',
                              $flags,
                              500000, # batchsize load
                              500, # batchsize replay
                              30, # long xact time
                              '/home/ec2-user/logs/'# long logfile folder
                        );
       /* run execute */
       $osc-&gt;execute();
?&gt;</pre>
<p>Then you run <code>execute()</code>. This method runs some initial cleanup of the DDL statement as well as all the other methods, some including but not limited to (this code is not in the alter.php script but in OnlineSchemaChange.php)</p>
<pre>      $this-&gt;init();
      $this-&gt;createCopyTable();
      $this-&gt;alterCopyTable();
      $this-&gt;createDeltasTable();
      $this-&gt;createTriggers();
      $this-&gt;startSnapshotXact();
      $this-&gt;selectTableIntoOutfile();
      $this-&gt;dropNCIndexes();
      $this-&gt;loadCopyTable();
      $this-&gt;replayChanges(false);
      $this-&gt;recreateNCIndexes();
      $this-&gt;replayChanges(false);
      $this-&gt;swapTables();
      $this-&gt;cleanup();</pre>
<p>I created a table with one integer column and 4 varchar(128) columns:</p>
<pre>CREATE TABLE `t1` (
  `id` int(11) NOT NULL DEFAULT '0',
  `col1` varchar(128) NOT NULL DEFAULT '',
  `col2` varchar(128) NOT NULL DEFAULT '',
  `col3` varchar(128) NOT NULL DEFAULT '',
  `col4` varchar(128) NOT NULL DEFAULT '',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB;</pre>
<h3>Testing OSC</h3>
<p>The insert script is very simple, it simply inserts random characters into every column in a big loop, albeit I utilize micro-sleep to space it out a bit so the insert occurs every millisecond and ensures I have the tool take its time somewhat while testing the alterations:</p>
<pre>for my $table ('t1') {
    my $insert = "insert into $table (id, col1, col2, col3, col4) values (?, ?, ?, ?, ?)";
    my $sth = $dbh-&gt;prepare($insert);

    for my $i ($row-&gt;[0] .. ($row-&gt;[0] + 1000000)) {
        my @chars = grep !/[0O1Iil]/, 0..9, 'A'..'Z', 'a'..'z';
        my $random_chars= join '', map { $chars[rand @chars] } 0 .. 512;

        my $col1 = substr($random_chars, 0, 127);
        my $col2 = substr($random_chars, 128, 255);
        my $col3 = substr($random_chars, 256, 384);
        my $col4 = substr($random_chars, 385, 512);

        $sth-&gt;execute($i, $col1, $col2, $col3, $col4);
        usleep(1000);
    }
}</pre>
<p>Next, using screen, I started the insert script, letting it run for some time to accumulate data so the table is somewhat full of data, then I ran the tool:</p>
<pre>[ec2-user@ip-10-200-xx-xx ~]$ ./alter.php</pre>
<p>When completed after about 10 minutes, I checked to see if it did its job:</p>
<pre>MariaDB [test]&gt; show create table t1G
*************************** 1. row ***************************
       Table: t1
Create Table: CREATE TABLE `t1` (
  `id` int(11) NOT NULL DEFAULT '0',
  `col1` varchar(128) NOT NULL DEFAULT '',
  `col2` varchar(128) NOT NULL DEFAULT '',
  `col3` varchar(128) NOT NULL DEFAULT '',
  `col4` varchar(128) NOT NULL DEFAULT '',
   `col5` varchar(128) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1</pre>
<p>Great! This is wonderful! However, I checked the other screen window:</p>
<pre>DBD::mysql::st execute failed: Table 'test.t1' doesn't exist at ./insert.pl line 43.</pre>
<p>Hmm, one statement failed. What does this mean exactly? I suspect the last phase is what causes this. I would have assumed the lock on all three tables during the renaming of the current to old, new to current would prevent this. My script doesn&#8217;t try to attempt to retry an SQL statement if it fails, but one caveat of using this tool is that whatever application is running against the table, that it might want to wait and retry the statement.</p>
<p>I added debug code to my insert tool and verified what insert statement fails, and verified that the failed statement did not get executed:</p>
<pre>DBD::mysql::st execute failed: Table 'test.t1' doesn't exist at ./insert.pl line 43.
ERROR: insert of 1050374, tubohRKzZ3JHAFASRCYogfTaB4MjbDTLXM9yHbbNPVtQarghJvcR2LFy4oTwcoAEb3qSvsLFJDnKtxJuDk9v6yKJzFX92LotuRKY3VLexL3NF56GacznFuLAp5xachu, pRNh6zzeQR8pzZaNUX2sBovAEnMf4gkZbH3sUXVmJx37Y7boJbBUpw4YS9C4dnVMULME7DkEhn5ss7wcmcmuhg2Eej6LDNWdqEbcskJdj4RZHm9T946uycw5YUJ2VotvPy9N3AwMVG7fwBHUmDCqnnBdPD2xGeP8SMfnEtPPBe4pW2hpr6HmYnrFN9YFAtKW2DJzbobvBnMBXEo7WG4DayaHbYSNJKymHBqcUkFVQNeszNYK8UYgRLH499gwRu3... failled

MariaDB [test]&gt; select * from t1 where id = 1050374;
Empty set (0.00 sec)</pre>
<p>A simple conceptual code snippet shows the essence of how an API would deal with this:</p>
<pre>            my $try_again = 1;
            while ($try_again) {
            if ($sth-&gt;execute($i, $col1, $col2, $col3, $col4)) {
                $try_again = 0;
            }
            else {
                print "ERROR: " . $DBI::errstr . " tried to insert record id $in";
                usleep(2000);
            }
        }</pre>
<p>This is very simplistic, but upon introducing this, the script was able to insert the data. Of course, there is much more complexity in a real-world application, and other errors could exist that cause a loop that attempts to &#8220;try again&#8221; to run endlessly.</p>
<p>The next thing I wanted to try is another alter, this time to drop the column just created:</p>
<pre>...
$osc = new OnlineSchemaChange('/tmp/mysql.sock',
                             ...
                              'alter table t1 drop column col5',
                             ...
                        );</pre>
<p>, however, I had an error. The PHP update.php script would finish quickly and upon reviewing the log, I would see:</p>
<pre>[ec2-user@ip-10-200-xx-xx ~]$ view logs/__osclog_t1.err

--OSC info: time=2011-07-27T14:59:34+00:00, db=test, table=t1, flags=400
--ALTER=ALTER TABLE __osc_new_t1 drop column col5
Exception: errno:-1054, error:-Loading copy table failed. SQL:-LOAD DATA INFILE '/tmp/output/__osc_tbl_t1.1' INTO TABLE __osc_new_t1(`id`, `col1`,`col2`,`col3`,`col4`,`col5`).Unknown column 'col5' in 'field list'</pre>
<p>I&#8217;m not sure why this is the case. It seems to me that the insert statement is still assuming that the dropped column col5, exists. I&#8217;d be glad to know if this is operator error, if I&#8217;m missing something.</p>
<p>Now to try adding an index with</p>
<pre>'alter table t1 add index col1 (col1)'</pre>
<p>as the alter statement, and sure enough:</p>
<pre>MariaDB [test]&gt; show create table t1G
*************************** 1. row ***************************
       Table: t1
Create Table: CREATE TABLE `t1` (
  `id` int(11) NOT NULL DEFAULT '0',
  `col1` varchar(128) NOT NULL DEFAULT '',
  `col2` varchar(128) NOT NULL DEFAULT '',
  `col3` varchar(128) NOT NULL DEFAULT '',
  `col4` varchar(128) NOT NULL DEFAULT '',
  `col5` varchar(128) DEFAULT NULL,
  PRIMARY KEY (`id`),
  KEY `col1` (`col1`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1</pre>
<p>Worked in that case.</p>
<h3>Summary</h3>
<p>The Facebook Online Schema Change tool is excellent, although there are few things you need to know about it, which I&#8217;ve pointed out:</p>
<ul>
<li>Make sure to create the directories it needs, particularly &#8216;output&#8217; directory which needs to be read/writeable by MySQL and the user you run the alteration script you write as.</li>
<li>You do have to be aware that your application will need to be able to handle the cut-over phase for when the renaming of tables results in the table you expect to be there isn&#8217;t.</li>
<li>You will need to remove the old table
<pre>drop table __osc_old_t1;</pre>
</li>
<li>Alter table drop column has an issue and I could not get it to work.</li>
<li>When using this tool, you need to be cognizant that it utilizes triggers, which you would want to run these alterations outside of replication.</li>
<li>Make sure to add
<pre>date_default_timezone_set('UTC');</pre>
<p>to your code or you will get warnings that annoy you to add it</li>
</ul>
<p>Again, I might have made a mistake, but can&#8217;t find anything to point to a particular mistake. My assessment with this tool is that is it excellent if you need to make alterations and need to not have major down-time do do so. It would have made my life much easier if I had used it in a number of projects! Thank you Facebook Team!</p>
<p>Related posts:</p>
<ol>
<li><a href='http://www.bluegecko.dk/mysql/recovering-a-schema-from-innodb-frm-files/' rel='bookmark' title='Permanent Link: Recovering a Schema From InnoDB .frm Files'>Recovering a Schema From InnoDB .frm Files</a></li>
<li><a href='http://www.bluegecko.dk/mysql/using-checksums-to-ensure-table-consistency-in-mysql/' rel='bookmark' title='Permanent Link: Using Checksums to Ensure Table Consistency in MySQL'>Using Checksums to Ensure Table Consistency in MySQL</a></li>
<li><a href='http://technocation.org/content/oursql-episode-50%3A-mysql-facebook,-current-and-future' rel='bookmark' title='Permanent Link: OurSQL Episode 50: MySQL at Facebook, Current and Future'>OurSQL Episode 50: MySQL at Facebook, Current and Future</a></li>
</ol>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>DBD::mysql 4.019 released</title>
		<link>https://bluegecko.dk/dbdmysql-4-019-released/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=dbdmysql-4-019-released</link>
		
		<dc:creator><![CDATA[pgalbraith]]></dc:creator>
		<pubDate>Mon, 09 May 2011 18:17:27 +0000</pubDate>
				<category><![CDATA[MySQL]]></category>
		<guid isPermaLink="false">http://www.bluegecko.net/?p=3038</guid>

					<description><![CDATA[Dear Perl and MySQL enthusiasts, I&#8217;m pleased to announce the release of DBD::mysql 4.019. I&#8217;m especially pleased because there are some new enhancements and features that have been provided by contributions from the community: * Asynchronous support, added by Rob Hoelz. This is a new feature to DBD::mysql that takes advantage of libmysql&#8217;s asynchronous functions [...]


Related posts:<ol><li><a href="http://www.bluegecko.net/mysql/dbdmysql-4-018-released/" rel="bookmark" title="Permanent Link: DBD::mysql 4.018 released">DBD::mysql 4.018 released</a></li>
<li><a href="http://www.bluegecko.net/mysql/dbdmysql-4-020-released/" rel="bookmark" title="Permanent Link: DBD::mysql 4.020 Released">DBD::mysql 4.020 Released</a></li>
<li><a href="http://www.bluegecko.net/mysql/memcached-functions-for-mysql-1-1-released/" rel="bookmark" title="Permanent Link: Memcached Functions for MySQL 1.1 released!">Memcached Functions for MySQL 1.1 released!</a></li>
</ol>]]></description>
										<content:encoded><![CDATA[<p>Dear Perl and MySQL enthusiasts,</p>
<p>I&#8217;m pleased to announce the release of DBD::mysql 4.019. I&#8217;m especially pleased because there are some new enhancements and features that have been provided by contributions from the community:</p>
<p>* Asynchronous support, added by Rob Hoelz. This is a new feature to DBD::mysql that takes advantage of libmysql&#8217;s asynchronous functions (see Jan&#8217;s article from 2008 http://jan.kneschke.de/2008/9/9/async-mysql-queries-with-c-api/) . From the DBD::mysql documentation:<span id="more-3038"></span></p>
<p>You can make a single asynchronous query per MySQL connection; this allows<br />
you to submit a long-running query to the server and have an event loop<br />
inform you when it&#8217;s ready.  An asynchronous query is started by either<br />
setting the &#8216;async&#8217; attribute to a true value in the DBI <code>do()</code> method,<br />
or in the DBI <code>prepare()</code> method.  Statements created with <code>async</code> set to<br />
true in prepare always run their queries asynchronously when DBI execute()<br />
is called.  The driver also offers three additional methods:<br />
mysql_async_result, <code>mysql_async_ready()</code>, and <code>mysql_fd</code>.<br />
<code>mysql_async_result()</code> returns what do or execute would have; that is, the<br />
number of rows affected.  <code>mysql_async_ready()</code> returns true if<br />
<code>mysql_async_result()</code> will not block, and zero otherwise.  They both return<br />
<code>undef</code> if that handle is not currently running an asynchronous query.<br />
<code>mysql_fd</code> returns the file descriptor number for the MySQL connection; you<br />
can use this in an event loop.</p>
<pre>  use feature 'say';
  $dbh-&gt;do('SELECT SLEEP(10)', { async =&gt; 1 });
  until($dbh-&gt;mysql_async_ready) {
    say 'not ready yet!';
    sleep 1;
  }
  my $rows = $dbh-&gt;mysql_async_result;</pre>
<p>* Enable environment variables for installation options from Amiri Barksdale. This is a feature that makes installation easier. For instance, you can set:</p>
<pre>    export DBD_MYSQL_TESTDB=test
    export DBD_MYSQL_TESTHOST=localhost
    export DBD_MYSQL_TESTPASSWORD=s3kr1+</pre>
<p>And then when you build and test DBD::mysql, the installation process will automatically pick these values up. There are many more environment variables documented on the DBD::mysql POD</p>
<p>* Other various cleanups, fix from Pedro Melo which fixed code from 4.018 that broke in newer versions of Perl<br />
* Cleanup of some warnings that persnickety compilers complained about</p>
<p>It&#8217;s great moving this project along, and I appreciate the patches and suggestions from the community!</p>
<p>The code can be found at:</p>
<p>http://search.cpan.org/~capttofu/DBD-mysql-4.019/lib/DBD/mysql.pm</p>
<p>Or</p>
<p>git clone https://github.com/CaptTofu/DBD-mysql</p>
<p>Related posts:</p>
<ol>
<li><a href='http://www.bluegecko.dk/mysql/dbdmysql-4-018-released/' rel='bookmark' title='Permanent Link: DBD::mysql 4.018 released'>DBD::mysql 4.018 released</a></li>
<li><a href='http://www.bluegecko.dk/mysql/dbdmysql-4-020-released/' rel='bookmark' title='Permanent Link: DBD::mysql 4.020 Released'>DBD::mysql 4.020 Released</a></li>
<li><a href='http://www.bluegecko.dk/mysql/memcached-functions-for-mysql-1-1-released/' rel='bookmark' title='Permanent Link: Memcached Functions for MySQL 1.1 released!'>Memcached Functions for MySQL 1.1 released!</a></li>
</ol>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>IOUG MySQL Council, Collaborate and MySQL CE</title>
		<link>https://bluegecko.dk/ioug-mysql-council-collaborate-and-mysql-ce/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=ioug-mysql-council-collaborate-and-mysql-ce</link>
		
		<dc:creator><![CDATA[snovotny]]></dc:creator>
		<pubDate>Wed, 27 Apr 2011 04:57:32 +0000</pubDate>
				<category><![CDATA[MySQL]]></category>
		<guid isPermaLink="false">http://www.bluegecko.net/?p=2942</guid>

					<description><![CDATA[I&#8217;ve had a week to think about and listen to the varying feedback around the O&#8217;Reilly MySQL and Collaborate conferences. There are many good points in the conversation I&#8217;ve been listening to. In particular, Baron Schwarz reminds everyone that the O&#8217;Reilly Conference brings together a unique cohort once a year that everyone looks forward to. [...]


Related posts:<ol><li><a href="http://www.bluegecko.net/mysql/mysql-council-activities-and-presence-at-collaborate-and-mysql-conference/" rel="bookmark" title="Permanent Link: MySQL Council activities and presence at Collaborate and MySQL Conference">MySQL Council activities and presence at Collaborate and MySQL Conference</a></li>
<li><a href="http://www.bluegecko.net/mysql/iougs-mysql-council/" rel="bookmark" title="Permanent Link: IOUG’s MySQL Council">IOUG&#8217;s MySQL Council</a></li>
<li><a href="http://www.bluegecko.net/mysql/iougs-mysql-council-statement-on-public-bug-database-uses/" rel="bookmark" title="Permanent Link: IOUG’s MySQL Council statement on public bug database uses">IOUG&#8217;s MySQL Council statement on public bug database uses</a></li>
</ol>]]></description>
										<content:encoded><![CDATA[<p>I&#8217;ve had a week to think about and listen to the varying feedback around the O&#8217;Reilly MySQL and Collaborate conferences. There are many good points in the conversation I&#8217;ve been listening to. In particular, <a href="http://www.xaprb.com/blog/2011/04/18/collaborate-versus-the-mysql-uc/" >Baron Schwarz reminds everyone that the O&#8217;Reilly Conference brings together a unique cohort</a> once a year that everyone looks forward to. He&#8217;s right. We have a fantastic community and an incredible density at that conference. But, the event doesn&#8217;t make the community.</p>
<p><span id="more-2942"></span>To that end, the company that owns the MySQL trademark doesn&#8217;t make the community either. Oracle isn&#8217;t the enemy any more than PostgreSQL or Hadoop is. They are a company that is trying to make money. In many many ways, this makes predicting their actions easier than a hybrid altruistic-dogmatic-profit model. Oracle isn&#8217;t the community. There is community around Oracle that is part of their ecosystem. There are many organizations that exist around Oracle <a href="http://www.amazon.com/Orbiting-Giant-Hairball-Corporate-Surviving/dp/0670879835">orbiting the giant hairball</a> (if Gordon MacKenzie will forgive me) and those organizations are the community as are many people who aren&#8217;t part of any organization.</p>
<p>Which leads me to the IOUG MySQL Council and the conference conundrum.</p>
<p>The IOUG isn&#8217;t Oracle. I think most people know this, but I was still hearing sloppy thinking equating Collaborate with Oracle&#8217;s conference. Oracle&#8217;s conference is Oracle OpenWorld. That&#8217;s it. Oracle is a sponsor of Collaborate just as it (eventually) was a sponsor of the MySQL C&amp;E. The conundrum was two-fold this year.</p>
<p>#1. Oracle told O&#8217;Reilly Media that they would not sponsor or support the MySQL C&amp;E on Friday after the 2010 conference (4 days after the acquisition was announced on the keynote stage to a stunned MySQL community) and didn&#8217;t reverse this position until very late in the planning cycle</p>
<p>#2. Collaborate and MySQL C&amp;E were scheduled the same week.  Because conference venues are often scheduled a year or more in advance, MySQL was only a twinkle in an Oracle lawyer&#8217;s eye when these dates were carved into archive.org.</p>
<p>These two factors set up a false competition for speakers, attendees and sponsorship resources.</p>
<p>Mark Callaghan commented on Baron&#8217;s blog post, rightly, that Collaborate is an opportunity for the top notch MySQL speakers and talent to speak to a wholly new audience.  Just as we shouldn&#8217;t be shunning the portions of Oracle&#8217;s community that reach out to us, we shouldn&#8217;t refuse to talk to individuals and organizations and companies who choose to attend a different conference for the different breadth of content.</p>
<p>Cultural cross-pollination is why I agreed to participate in and eventually to chair the IOUG&#8217;s MySQL Council.  I feel the Council&#8217;s charter is still relevant with the larger points being, helping the IOUG design MySQL content and networking opportunities for their membership and offering an umbrella and map to the MySQL community as we learn to navigate the new city-state of Oracle.  Since there are 51 more weeks of the year, please take a moment to offer the IOUG MySQL Council some <a href="http://www.ioug.org/ImLookingFor/MySQLInformation/MySQLCommunitySurvey/tabid/202/e/1/Default.asp">feedback</a> and let us know what the MySQL Community might want from the IOUG.  We (collectively) can make MySQL and the entire ecosystem greater by embracing the offers of the Oracle community while still evolving the amazing group and culture we have.</p>
<p>I want the MySQL community to have an event that brings us all together to swap stories, share new tools and techniques, and explore new technologies. The ecosystem is doing well but we are being asked to stretch our definition of community.</p>
<p>Related posts:</p>
<ol>
<li><a href='http://www.bluegecko.dk/mysql/mysql-council-activities-and-presence-at-collaborate-and-mysql-conference/' rel='bookmark' title='Permanent Link: MySQL Council activities and presence at Collaborate and MySQL Conference'>MySQL Council activities and presence at Collaborate and MySQL Conference</a></li>
<li><a href='http://www.bluegecko.dk/mysql/iougs-mysql-council/' rel='bookmark' title='Permanent Link: IOUG&#8217;s MySQL Council'>IOUG&#8217;s MySQL Council</a></li>
<li><a href='http://www.bluegecko.dk/mysql/iougs-mysql-council-statement-on-public-bug-database-uses/' rel='bookmark' title='Permanent Link: IOUG&#8217;s MySQL Council statement on public bug database uses'>IOUG&#8217;s MySQL Council statement on public bug database uses</a></li>
</ol>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Remote DBA for Drizzle</title>
		<link>https://bluegecko.dk/remote-dba-for-drizzle/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=remote-dba-for-drizzle</link>
		
		<dc:creator><![CDATA[snovotny]]></dc:creator>
		<pubDate>Wed, 13 Apr 2011 14:10:25 +0000</pubDate>
				<category><![CDATA[Drizzle]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[News & Events]]></category>
		<guid isPermaLink="false">http://www.bluegecko.net/?p=2891</guid>

					<description><![CDATA[This morning at the MySQL User Conference and Expo, we&#8217;re excited to be included in Brian Aker&#8217;s keynote &#8220;The State of Drizzle&#8221; as one of the first organization to offer support for Drizzle now that it has reached GA with the release of Drizzle 7.  Brian Aker is the CTO of Data Differential and is [...]


Related posts:<ol><li><a href="http://www.bluegecko.net/news-events/patrick-galbraith-named-oracle-ace/" rel="bookmark" title="Permanent Link: Patrick Galbraith named Oracle ACE!">Patrick Galbraith named Oracle ACE!</a></li>
<li><a href="http://www.bluegecko.net/news-events/blue-gecko-is-an-official-drizzle-sponsor/" rel="bookmark" title="Permanent Link: Blue Gecko is an official Drizzle sponsor">Blue Gecko is an official Drizzle sponsor</a></li>
<li><a href="http://technocation.org/content/drizzle-podcast-%25231" rel="bookmark" title="Permanent Link: Drizzle Podcast #1">Drizzle Podcast #1</a></li>
</ol>]]></description>
										<content:encoded><![CDATA[<p>This morning at the MySQL User Conference and Expo, we&#8217;re excited to be included in Brian Aker&#8217;s keynote &#8220;The State of Drizzle&#8221; as one of the first organization to offer support for Drizzle now that it has reached GA with the release of Drizzle 7.  Brian Aker is the CTO of <a href="http://www.datadifferential.com/home" >Data Differential</a> and is the lead developer for the Drizzle Project.<br />
<span id="more-2891"></span></p>
<p>Blue Gecko will offer operational support via our remote DBA model for Drizzle environments in the same manner and with the same stellar support team as has grown to support MySQL since we added service for it in 2003.  Our team can augment a company&#8217;s operational DBAs or can help a small installation move from a developer managed database to a more scalable 24&#215;7 follow the sun operational model.  We provide operational remote DBA support to organizations from the startup to divisions of Fortune 500 companies. To learn more, please check out the description of our <a href="http://www.bluegecko.dk/remote-dba-services/" >Remote DBA Services</a>.</p>
<p>Blue Gecko has additionally worked with Patrick Galbraith to contribute <a title="Permanent Link: DBD::drizzle .301 released" rel="bookmark" href="http://www.bluegecko.dk/drizzle-3/dbddrizzle-0-303-released/">DBD::drizzle</a> and <a title="Permanent Link: Blue Gecko Drizzle AMIs now available!" rel="bookmark" href="http://www.bluegecko.dk/drizzle-3/blue-gecko-drizzle-amis-now-available/">Drizzle AMIs</a> for use at Amazon AWS to the Drizzle project.  In our core service space, we have worked with the Drizzle team offering infrastructure support to their project for the last two years and are excited to be included in announcement. Many congratulations to their team for making this new micro-kernel database a reality.</p>
<p>updated:  Patrick Galbraith will be attending the Drizzle Developer Day on Friday April 15th.</p>
<p>Related posts:</p>
<ol>
<li><a href='http://www.bluegecko.dk/news-events/patrick-galbraith-named-oracle-ace/' rel='bookmark' title='Permanent Link: Patrick Galbraith named Oracle ACE!'>Patrick Galbraith named Oracle ACE!</a></li>
<li><a href='http://www.bluegecko.dk/news-events/blue-gecko-is-an-official-drizzle-sponsor/' rel='bookmark' title='Permanent Link: Blue Gecko is an official Drizzle sponsor'>Blue Gecko is an official Drizzle sponsor</a></li>
<li><a href='http://technocation.org/content/drizzle-podcast-%25231' rel='bookmark' title='Permanent Link: Drizzle Podcast #1'>Drizzle Podcast #1</a></li>
</ol>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Blue Gecko at the 2011 MySQL Conference</title>
		<link>https://bluegecko.dk/blue-gecko-at-the-2011-mysql-conference/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=blue-gecko-at-the-2011-mysql-conference</link>
		
		<dc:creator><![CDATA[snovotny]]></dc:creator>
		<pubDate>Mon, 11 Apr 2011 21:01:09 +0000</pubDate>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[OurSQL Community Podcast]]></category>
		<guid isPermaLink="false">http://www.bluegecko.net/?p=2884</guid>

					<description><![CDATA[Hello to those of you who are in Santa Clara!  Patrick Galbraith and I will be here this week, speaking and glad handing.  You can find us both in the Attendee Directory and identify either or both of us as someone you&#8217;d like to meet. Patrick&#8217;s Sessions are: 5:15pm Wednesday &#8211; Perl programming with MySQL [...]


Related posts:<ol><li><a href="http://www.bluegecko.net/news-events/2011-mysql-community-dinner-west-at-the-o%E2%80%99reilly-mysql-conference/" rel="bookmark" title="Permanent Link: 2011 MySQL community dinner (west) at the O’Reilly MySQL Conference">2011 MySQL community dinner (west) at the O’Reilly MySQL Conference</a></li>
<li><a href="http://www.bluegecko.net/mysql/ignite-mysql-at-the-mysql-conference-and-expo-2/" rel="bookmark" title="Permanent Link: Ignite MySQL at the MySQL Conference and Expo">Ignite MySQL at the MySQL Conference and Expo</a></li>
<li><a href="http://www.bluegecko.net/mysql/mysql-council-activities-and-presence-at-collaborate-and-mysql-conference/" rel="bookmark" title="Permanent Link: MySQL Council activities and presence at Collaborate and MySQL Conference">MySQL Council activities and presence at Collaborate and MySQL Conference</a></li>
</ol>]]></description>
										<content:encoded><![CDATA[<p>Hello to those of you who are in Santa Clara!  Patrick Galbraith and I will be here this week, speaking and glad handing.  You can find us both in the <a href="http://en.oreilly.com/mysql2011/user/network/attending" >Attendee Directory</a> and identify either or both of us as someone you&#8217;d like to meet.</p>
<p>Patrick&#8217;s Sessions are:</p>
<p>5:15pm Wednesday &#8211; <a name="session17252" href="http://en.oreilly.com/mysql2011/public/schedule/detail/17252">Perl programming with MySQL and Drizzle</a><br />
11:55am Thursday &#8211; <a name="session17282" href="http://en.oreilly.com/mysql2011/public/schedule/detail/17282">Narada: using Gearman, Sphinx, Memcached, Drizzle and PHP to build a search application</a></p>
<p>I&#8217;ll be speaking in Wednesday night&#8217;s <a name="session19409" href="http://en.oreilly.com/mysql2011/public/schedule/detail/19409">Ignite MySQLconf</a> and at:</p>
<p>10:50am Thursday &#8211; <a name="session17568" href="http://en.oreilly.com/mysql2011/public/schedule/detail/17568">MySQL replication &#8211; all data everywhere, is it a good idea?</a></p>
<p>And, I believe we&#8217;ll both be at the <a href="http://www.bluegecko.dk/news-events/2011-mysql-community-dinner-west-at-the-o'reilly-mysql-conference/" >MySQL Community Dinner</a> tonight.  I&#8217;m looking forward to seeing many familiar and lots of new faces.  I&#8217;ll even have my recorder with me to capture sound bites for the OurSQL podcast.  See you at Pedro&#8217;s!</p>
<p>Related posts:</p>
<ol>
<li><a href='http://www.bluegecko.dk/news-events/2011-mysql-community-dinner-west-at-the-o%E2%80%99reilly-mysql-conference/' rel='bookmark' title='Permanent Link: 2011 MySQL community dinner (west) at the O’Reilly MySQL Conference'>2011 MySQL community dinner (west) at the O’Reilly MySQL Conference</a></li>
<li><a href='http://www.bluegecko.dk/mysql/ignite-mysql-at-the-mysql-conference-and-expo-2/' rel='bookmark' title='Permanent Link: Ignite MySQL at the MySQL Conference and Expo'>Ignite MySQL at the MySQL Conference and Expo</a></li>
<li><a href='http://www.bluegecko.dk/mysql/mysql-council-activities-and-presence-at-collaborate-and-mysql-conference/' rel='bookmark' title='Permanent Link: MySQL Council activities and presence at Collaborate and MySQL Conference'>MySQL Council activities and presence at Collaborate and MySQL Conference</a></li>
</ol>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Narada 0.202 (plus AMI!) released</title>
		<link>https://bluegecko.dk/narada-0-202-plus-ami-released/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=narada-0-202-plus-ami-released</link>
		
		<dc:creator><![CDATA[pgalbraith]]></dc:creator>
		<pubDate>Thu, 07 Apr 2011 14:40:00 +0000</pubDate>
				<category><![CDATA[Drizzle]]></category>
		<category><![CDATA[MySQL]]></category>
		<guid isPermaLink="false">http://www.bluegecko.net/?p=2864</guid>

					<description><![CDATA[I&#8217;m pleased to announce the release of the Narada Search Engine Application, version 0.202, as well as a ready-to-use AMI, ami-140df07d. The source release can be found at Launchpad &#8211; lp:narada and and a packaged version at http://patg.net/downloads/narada-0.202.tar.gz What is Narada? Narada is a search engine application. It does have a web application component, but [...]


Related posts:<ol><li><a href="http://www.bluegecko.net/mysql/blue-gecko-at-the-2011-mysql-conference/" rel="bookmark" title="Permanent Link: Blue Gecko at the 2011 MySQL Conference">Blue Gecko at the 2011 MySQL Conference</a></li>
<li><a href="http://www.bluegecko.net/mysql/dbddrizzle-301-released/" rel="bookmark" title="Permanent Link: DBD::drizzle .301 released">DBD::drizzle .301 released</a></li>
<li><a href="http://www.bluegecko.net/drizzle-3/dbddrizzle-0-303-released/" rel="bookmark" title="Permanent Link: DBD::drizzle 0.303 Released">DBD::drizzle 0.303 Released</a></li>
</ol>]]></description>
										<content:encoded><![CDATA[<p>I&#8217;m pleased to announce the release of the Narada Search Engine Application, version 0.202, as well as a ready-to-use AMI, ami-140df07d.</p>
<p>The source release can be found at Launchpad &#8211; lp:narada and and a packaged version at <a href="http://patg.net/downloads/narada-0.202.tar.gz">http://patg.net/downloads/narada-0.202.tar.gz</a></p>
<p>What is Narada? Narada is a search engine application. It does have a web application component, but it also has a very novel approach on the back-end in how it implements various functionalities by using Gearman, memcached, Sphinx and either MySQL or Drizzle as a data store. It is somewhat of a proof-of-concept that was borne from an idea I had one late night while working on my first book, <em><a href="http://www.amazon.com/Developing-Applications-Apache-MySQL-memcached/dp/0470414642/ref=sr_1_1?ie=UTF8&amp;s=books&amp;qid=1243562226&amp;sr=1-1">Developing Web Applications with Apache, MySQL, memcached, and Perl</a></em>. I wanted to show how useful using all these great new tools&#8211; Gearman, memcached and Sphinx &#8212; for scaling out functionality and data, along with MySQL, and later Drizzle.</p>
<p><span id="more-2864"></span>I realized upon developing this application, not only being an interesting concept to discuss and detail in a book, that it was also a very practical application that others would find very useful, hence I decided to release this project as an open source project that others could put to use and hopefully contribute to.</p>
<p>After initially releasing Narada, there was a PHP added by Eric Day and Java port by the Trond Norbye and the Sun Cloud Computing team that was presented at Java One two years ago. These PHP port is not as up to date as the Perl port and the Java port was lost in the shuffle of mergers, but I intend to at least bring the PHP API up to date soon. One of the ideas I wish to stress is that with Narada, you are not forced to use any particular language for implementation. The workers and web UI can be implemented any way you like. It&#8217;s the artichitectural concept of Narada &#8212; using Gearman workers, a distributed index like Sphinx, and a write-through cache with memcached, as well as using either MySQL or Drizzle for data store, that is important. All language implementations are included with Narada.</p>
<p>In terms of specific technical functionality, Narada consists of a very simple web application front end with a back end that uses Gearman (Gearman workers specifically) , Sphinx, memcached and MySQL or Drizzle to implement the real functionality of the application. The basic user experience for Narada is that there is what I call a URL queue web UI where one enters URLs that could be thought of as a &#8220;seed&#8221; URLs.</p>
<p>I thought it was be a great idea to use gearmand to dispatch what I call &#8220;url_fetcher&#8221; workers that are used obtain content from the remote document of the submitted URL, look for any links and in turn use recursion, to a given depth, fetching yet more remote documents a certain number of times. For each remote document that the url_fetcher worker retrieves, it caches the content of that document temporarily in memcached as well as updates a a very simple ID table in the database that contains a &#8220;catalogue&#8221; of temporarily cached documents as well as updating a simple counter item in memcached to indicate the number of documents cached. The idea behind this is first for performance so each retrieval doesn&#8217;t require insertion of a record containing a blob field into the database, and also an attempt to inevitably &#8220;bulk&#8221; insert these cached documents at a later point in time, albeit short period of time.</p>
<p>For each document the url_fetcher worker retrieves and caches, it in turn requests another worker through gearmand, the &#8220;url_store&#8221; worker. The url_store worker, whenever called, checks a the counter item that the url_fetcher worker incremented for each document retrieved and the number checked for to a given value, if matching, determines that the cached documents should be stored in the permanently in the database. These cached documents are bulk-inserted into the database for the benefit of write performance and a simple counter item set to the value of the number of documents stored in the database is cached memcached .</p>
<p>The url_store worker also requests through gearmand an Sphinx reindex worker that when called checks the counter set by the url_store worker for the number of documents stored and if the value matches, the Sphinx indexer is called to rebuild the indexes. The other component to make use of this indexes content is a web UI that allows a user to enter a search term and returns the URLs and an excerpt with the search term highlighted which the user can then navigate to the remote document/site which contains the search term. This functionality is implemented by using Sphinx to return the document ids from that search term to obtain the document content from MySQL and then finally displayed. Sphinx also is used to build the excerpts for the search results displayed.</p>
<p><a href="http://www.bluegecko.dk/wp-content/uploads/2011/04/414644-fg1701.drizzle_sm.jpg"><img fetchpriority="high" decoding="async" class="alignnone size-full wp-image-2873" src="http://www.bluegecko.dk/wp-content/uploads/2011/04/414644-fg1701.drizzle_sm.jpg" alt="Narada Diagram" width="435" height="342" /></a></p>
<p>The image above shows in a diagram the components described in this post. You&#8217;ll see that there are several components, all of which are quite scalable making Narada an ideal Search application with scaling built in from conception.</p>
<div id="attachment_2877" class="wp-caption alignnone" style="width: 492px"><a href="http://www.bluegecko.dk/wp-content/uploads/2011/04/414644-fg1704_sm1.jpg"><img decoding="async" class="size-full wp-image-2877" src="http://www.bluegecko.dk/wp-content/uploads/2011/04/414644-fg1704_sm1.jpg" alt="" width="482" height="583" /></a></p>
<p class="wp-caption-text">Narada Search results page</p>
</div>
<p>The next image shown is an example of the Search results page.</p>
<div id="attachment_2875" class="wp-caption alignnone" style="width: 360px"><a href="http://www.bluegecko.dk/wp-content/uploads/2011/04/414644-fg1706_sm.jpg"><img decoding="async" class="size-full wp-image-2875" src="http://www.bluegecko.dk/wp-content/uploads/2011/04/414644-fg1706_sm.jpg" alt="" width="350" height="412" /></a></p>
<p class="wp-caption-text">Narada URL Queue page</p>
</div>
<p>And finally, an image displaying the URL Queue page, where you enter &#8220;seed&#8221; URLs.</p>
<p>This release that I have made, 0.202, is mainly changes to the web UI mod_perl handlers, workers as well as core library. Also changed is how I want to develop a language agnostic Sphinx configuration file using YAML, which I have implemented for the Perl port and soon the PHP port. I&#8217;ve also made the Perl port as easy to install as possible &#8211; with PHP&#8217;s deployment model in mind. I&#8217;ve also added a lot of documentation about how to install and run Narada.</p>
<p>The AMI I also released, ami-140df07d, is an out-of-the-box ready-to-use AMI that has everything set up for you to immediately run Narada on your website. You will find upon logging in as the &#8220;narada&#8221; user to your RPM that there is a file in the home directory called &#8220;README.1st&#8221;. Read this, and you will be on your way to running Narada!</p>
<p>As a final note, next week at the MySQL Users Conference I will be giving a <a href="http://en.oreilly.com/mysql2011/public/schedule/detail/17282">talk and demonstration of Narada</a>. I hope to see you there!</p>
<p>Related posts:</p>
<ol>
<li><a href='http://www.bluegecko.dk/mysql/blue-gecko-at-the-2011-mysql-conference/' rel='bookmark' title='Permanent Link: Blue Gecko at the 2011 MySQL Conference'>Blue Gecko at the 2011 MySQL Conference</a></li>
<li><a href='http://www.bluegecko.dk/mysql/dbddrizzle-301-released/' rel='bookmark' title='Permanent Link: DBD::drizzle .301 released'>DBD::drizzle .301 released</a></li>
<li><a href='http://www.bluegecko.dk/drizzle-3/dbddrizzle-0-303-released/' rel='bookmark' title='Permanent Link: DBD::drizzle 0.303 Released'>DBD::drizzle 0.303 Released</a></li>
</ol>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>MySQL Council activities and presence at Collaborate and MySQL Conference</title>
		<link>https://bluegecko.dk/mysql-council-activities-and-presence-at-collaborate-and-mysql-conference/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=mysql-council-activities-and-presence-at-collaborate-and-mysql-conference</link>
		
		<dc:creator><![CDATA[snovotny]]></dc:creator>
		<pubDate>Mon, 04 Apr 2011 15:48:54 +0000</pubDate>
				<category><![CDATA[IOUG]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[MySQL Council]]></category>
		<category><![CDATA[mysql conference]]></category>
		<guid isPermaLink="false">http://www.bluegecko.net/?p=2812</guid>

					<description><![CDATA[In the land of the MySQL council,  the IOUG has created a survey asking for community feedback on the future of the council and the IOUG&#8217;s programming for MySQL.  This is an excellent opportunity for us to shape how the largest independent user group supporting Oracle technologies helps our community grow and work with Oracle [...]


Related posts:<ol><li><a href="http://www.bluegecko.net/mysql/ioug-mysql-council-collaborate-and-mysql-ce/" rel="bookmark" title="Permanent Link: IOUG MySQL Council, Collaborate and MySQL CE">IOUG MySQL Council, Collaborate and MySQL CE</a></li>
<li><a href="http://www.bluegecko.net/mysql/iougs-mysql-council/" rel="bookmark" title="Permanent Link: IOUG’s MySQL Council">IOUG&#8217;s MySQL Council</a></li>
<li><a href="http://www.bluegecko.net/news-events/2011-mysql-community-dinner-west-at-the-o%E2%80%99reilly-mysql-conference/" rel="bookmark" title="Permanent Link: 2011 MySQL community dinner (west) at the O’Reilly MySQL Conference">2011 MySQL community dinner (west) at the O’Reilly MySQL Conference</a></li>
</ol>]]></description>
										<content:encoded><![CDATA[<p><!-- p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica} p.p2 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica; min-height: 14.0px} p.p3 {margin: 0.0px 0.0px 0.0px 0.0px; font: 12.0px Helvetica; color: #134fae} span.s1 {color: #000000} span.s2 {text-decoration: underline} -->In the land of the <a href="http://www.bluegecko.dk/mysql/iougs-mysql-council/">MySQL council</a>,  the IOUG has created a survey asking for <a href="http://www.ioug.org/ImLookingFor/MySQLInformation/MySQLCommunitySurvey/tabid/202/e/1/Default.aspx%20%20" >community feedback</a> on the future of the council and the IOUG&#8217;s programming for MySQL.  This is an excellent opportunity for us to shape how the largest independent user group supporting Oracle technologies helps our community grow and work with Oracle going forward.</p>
<p><span id="more-2812"></span>As an example, I participated, as the the Chair of the MySQL Council, in a call with Luke Kowalski to talk about communicating with the community so as to avoid fomenting the FUD that our community has been plagued with for the last several years during the two acquisitions.  He has offered to have Tomas Ulin address a few questions from the community during his State of the Dolphin Keynote at Collaborate 11.  These questions are being collected in this <a href="https://spreadsheets.google.com/viewform?formkey=dHJrdVZ3SGdOUlRRYVVWZmlJT3FMWVE6MQ" >form</a> and will need to be submitted by noon PT on 4/6/201.</p>
<p>Additionally, I&#8217;m happy to answer any questions about the MySQL Council in person during the conferences.  I&#8217;ll be at Collaborate on Sunday for the deep dives, and the <a href="http://2011mysqlcommunitydinnereast.eventbrite.com/" >Community Dinner East</a>.  Don&#8217;t forget to register if you haven&#8217;t already.   Monday morning I&#8217;ll be heading to the O&#8217;Reilly MySQL Conference and Expo appearing in time for the <a href="http://2011mysqlcommunitydinnerwest.eventbrite.com/" >Community Dinner West</a>.  (Again, please register if you haven&#8217;t already.)  I&#8217;ll be in Santa Clara the rest of the week including giving an Ignite talk and a session on replicated data on Thursday.</p>
<p>I&#8217;m looking forward to meeting many of you at the two community dinners.</p>
<p>Related posts:</p>
<ol>
<li><a href='http://www.bluegecko.dk/mysql/ioug-mysql-council-collaborate-and-mysql-ce/' rel='bookmark' title='Permanent Link: IOUG MySQL Council, Collaborate and MySQL CE'>IOUG MySQL Council, Collaborate and MySQL CE</a></li>
<li><a href='http://www.bluegecko.dk/mysql/iougs-mysql-council/' rel='bookmark' title='Permanent Link: IOUG&#8217;s MySQL Council'>IOUG&#8217;s MySQL Council</a></li>
<li><a href='http://www.bluegecko.dk/news-events/2011-mysql-community-dinner-west-at-the-o%E2%80%99reilly-mysql-conference/' rel='bookmark' title='Permanent Link: 2011 MySQL community dinner (west) at the O’Reilly MySQL Conference'>2011 MySQL community dinner (west) at the O’Reilly MySQL Conference</a></li>
</ol>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>IOUG’s MySQL Council statement on public bug database uses</title>
		<link>https://bluegecko.dk/iougs-mysql-council-statement-on-public-bug-database-uses/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=iougs-mysql-council-statement-on-public-bug-database-uses</link>
		
		<dc:creator><![CDATA[snovotny]]></dc:creator>
		<pubDate>Tue, 08 Mar 2011 22:49:45 +0000</pubDate>
				<category><![CDATA[MySQL]]></category>
		<guid isPermaLink="false">http://www.bluegecko.net/?p=2791</guid>

					<description><![CDATA[Being a MySQL Council member is something that takes up some of my time, but what I get in return is to help the community address issues in with Oracle when there is a lack of communication or understanding. The council drafted a statement late last week after Mark Callaghan&#8217;s post &#8220;Where have all the [...]


Related posts:<ol><li><a href="http://www.bluegecko.net/mysql/ioug-mysql-council-collaborate-and-mysql-ce/" rel="bookmark" title="Permanent Link: IOUG MySQL Council, Collaborate and MySQL CE">IOUG MySQL Council, Collaborate and MySQL CE</a></li>
<li><a href="http://www.bluegecko.net/mysql/iougs-mysql-council/" rel="bookmark" title="Permanent Link: IOUG’s MySQL Council">IOUG&#8217;s MySQL Council</a></li>
<li><a href="http://www.bluegecko.net/mysql/mysql-council-activities-and-presence-at-collaborate-and-mysql-conference/" rel="bookmark" title="Permanent Link: MySQL Council activities and presence at Collaborate and MySQL Conference">MySQL Council activities and presence at Collaborate and MySQL Conference</a></li>
</ol>]]></description>
										<content:encoded><![CDATA[<p>Being a <a href="http://www.bluegecko.dk/mysql/iougs-mysql-council/" >MySQL Council</a> member is something that takes up some of my time, but what I get in return is to help the community address issues in with Oracle when there is a lack of communication or understanding.</p>
<p>The council drafted a <a href="http://www.ioug.org/Events/IOUGWelcomesMySQL/tabid/164/Default.aspx" >statement</a> late last week after Mark Callaghan&#8217;s post &#8220;<a href="http://mysqlha.blogspot.com/2011/02/where-have-bugs-gone.html" >Where have all the bugs gone?</a>&#8221; and has reached out to leaders in the Oracle support organization to draw attention to community concerns and drawbacks that we hope haven&#8217;t been previously considered.  More information as we have it.</p>
<p><span id="more-2791"></span></p>
<p>Related posts:</p>
<ol>
<li><a href='http://www.bluegecko.dk/mysql/ioug-mysql-council-collaborate-and-mysql-ce/' rel='bookmark' title='Permanent Link: IOUG MySQL Council, Collaborate and MySQL CE'>IOUG MySQL Council, Collaborate and MySQL CE</a></li>
<li><a href='http://www.bluegecko.dk/mysql/iougs-mysql-council/' rel='bookmark' title='Permanent Link: IOUG&#8217;s MySQL Council'>IOUG&#8217;s MySQL Council</a></li>
<li><a href='http://www.bluegecko.dk/mysql/mysql-council-activities-and-presence-at-collaborate-and-mysql-conference/' rel='bookmark' title='Permanent Link: MySQL Council activities and presence at Collaborate and MySQL Conference'>MySQL Council activities and presence at Collaborate and MySQL Conference</a></li>
</ol>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Ninja tricks in top!</title>
		<link>https://bluegecko.dk/ninja-tricks-in-top/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=ninja-tricks-in-top</link>
		
		<dc:creator><![CDATA[snovotny]]></dc:creator>
		<pubDate>Sat, 26 Feb 2011 02:14:06 +0000</pubDate>
				<category><![CDATA[Education]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[Mike Hamrick]]></category>
		<guid isPermaLink="false">http://www.bluegecko.net/?p=2761</guid>

					<description><![CDATA[One of our senior MySQL DBAs, Mike Hamrick, wasn&#8217;t feeling well this week and so stayed home from the office.  Instead of actually resting, produced this video about reading top output!  I leave it to you all to watch and learn from our local tool tip pro. And, feel better Mike! Related posts:Introducing the Bluegecko [...]


Related posts:<ol><li><a href="http://www.bluegecko.net/mysql/introducing-the-bluegecko-mysql-training-ami/" rel="bookmark" title="Permanent Link: Introducing the Bluegecko MySQL Training AMI">Introducing the Bluegecko MySQL Training AMI</a></li>
<li><a href="http://technocation.org/content/oursql-episode-32%3A-backup-tools-you-already-have-%5Bbackup-series-%25232%5D" rel="bookmark" title="Permanent Link: OurSQL Episode 32: Backup tools you already have  [Backup series #2]">OurSQL Episode 32: Backup tools you already have  [Backup series #2]</a></li>
<li><a href="http://www.bluegecko.net/mysql/ignite-mysql-at-the-mysql-conference-and-expo/" rel="bookmark" title="Permanent Link: Ignite MySQL at the MySQL Conference and Expo">Ignite MySQL at the MySQL Conference and Expo</a></li>
</ol>]]></description>
										<content:encoded><![CDATA[<p>One of our senior MySQL DBAs, Mike Hamrick, wasn&#8217;t feeling well this week and so stayed home from the office.  Instead of actually resting, <a href="http://bit.ly/hzMhig" >produced this video</a> about reading top output!  I leave it to you all to watch and learn from our local tool tip pro.</p>
<p>And, feel better Mike!</p>
<p>Related posts:</p>
<ol>
<li><a href='http://www.bluegecko.dk/mysql/introducing-the-bluegecko-mysql-training-ami/' rel='bookmark' title='Permanent Link: Introducing the Bluegecko MySQL Training AMI'>Introducing the Bluegecko MySQL Training AMI</a></li>
<li><a href='http://technocation.org/content/oursql-episode-32%3A-backup-tools-you-already-have-%5Bbackup-series-%25232%5D' rel='bookmark' title='Permanent Link: OurSQL Episode 32: Backup tools you already have  [Backup series #2]'>OurSQL Episode 32: Backup tools you already have  [Backup series #2]</a></li>
<li><a href='http://www.bluegecko.dk/mysql/ignite-mysql-at-the-mysql-conference-and-expo/' rel='bookmark' title='Permanent Link: Ignite MySQL at the MySQL Conference and Expo'>Ignite MySQL at the MySQL Conference and Expo</a></li>
</ol>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>OurSQL update and recording day!</title>
		<link>https://bluegecko.dk/oursql-update-and-recording-day/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=oursql-update-and-recording-day</link>
		
		<dc:creator><![CDATA[snovotny]]></dc:creator>
		<pubDate>Tue, 15 Feb 2011 15:43:54 +0000</pubDate>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[OurSQL Community Podcast]]></category>
		<category><![CDATA[podcast]]></category>
		<category><![CDATA[Sarah Novotny]]></category>
		<guid isPermaLink="false">http://www.bluegecko.net/?p=2705</guid>

					<description><![CDATA[The OurSQL podcasts will eventually make it into the Blue Gecko blog.  But, in the mean time, I&#8217;d like to summarize what Sheeri Cabral and I have been getting up to.  As I mentioned in the OurSQL revival post we are working to bring you a podcast every week about something technical or community related. [...]


Related posts:<ol><li><a href="http://technocation.org/content/oursql-episode-33%3A-looking-through-lenz-(backup-series-%25233,-mylvmbackup)" rel="bookmark" title="Permanent Link: OurSQL Episode 33: Looking Through the Lenz (Backup Series #3, mylvmbackup)">OurSQL Episode 33: Looking Through the Lenz (Backup Series #3, mylvmbackup)</a></li>
<li><a href="http://technocation.org/content/oursql-episode-1%3A-backups,-backups-everywhere" rel="bookmark" title="Permanent Link: OurSQL Episode 1: Backups, Backups Everywhere">OurSQL Episode 1: Backups, Backups Everywhere</a></li>
<li><a href="http://www.bluegecko.net/mysql/oursql-podcast-revival/" rel="bookmark" title="Permanent Link: OurSQL Podcast revival">OurSQL Podcast revival</a></li>
</ol>]]></description>
										<content:encoded><![CDATA[<p>The OurSQL podcasts will eventually make it into the Blue Gecko blog.  But, in the mean time, I&#8217;d like to summarize what Sheeri Cabral and I have been getting up to.  As I mentioned in the <a href="http://www.bluegecko.dk/mysql/oursql-podcast-revival/">OurSQL revival</a> post we are working to bring you a podcast every week about something technical or community related.  Since mid-December, we&#8217;ve recorded and published eight podcasts.<span id="more-2705"></span></p>
<h3><em><a href="http://technocation.org/content/oursql-episode-26%3A-zombies!">OurSQL Episode 26: Zombies!</a></em></h3>
<p style="padding-left: 30px;">MySQL 5.5 release and our favorite updates to our favorite database</p>
<h3><em><a href="http://technocation.org/content/oursql-episode-26%3A-zombies!"></a></em><em><a href="http://technocation.org/content/oursql-episode-27%3A-sql-or-no%5Btto%5Dsql,-question">OurSQL Episode 27: To SQL or No[tto]SQL, that is the question</a></em></h3>
<p style="padding-left: 30px;">HandlerSocket release conversation with Patrick Galbraith as well as conversations about Strata and the MySQL Conference in April</p>
<h3><em><a href="http://technocation.org/content/oursql-episode-28%3A-conferential-integrity">OurSQL Episode 28: Conferential Integrity</a></em></h3>
<p style="padding-left: 30px;"><span style="font-weight: normal;">A broad overview of upcoming conferences in 2011</span></p>
<h3><em><a href="http://technocation.org/content/oursql-episode-29%3A-subpar-subqueries">OurSQL Episode 29: Subpar Subqueries</a></em></h3>
<p style="padding-left: 30px;">Subquery limitations, tricks and tips, and future (hoped for) enhancements.</p>
<h3><em><a href="http://technocation.org/content/oursql-episode-30%3A-backup-glossary-(backup-series-%25231)">OurSQL Episode 30: Backup Glossary (Backup Series #1)</a></em></h3>
<p style="padding-left: 30px;">Language used to describe backups and the many subtleties that exist</p>
<h3><em><a href="http://technocation.org/content/oursql-episode-31%3A-mysql-ecosystem">OurSQL Episode 31: The MySQL Ecosystem</a></em></h3>
<p style="padding-left: 30px;">An interview with Brian Aker of <a href="http://datadifferential.com/DataDifferential.html" >Data Differential</a> and co-chair of the 2011 MySQL Conference.</p>
<h3><em><a href="http://technocation.org/content/oursql-episode-32%3A-backup-tools-you-already-have-%5Bbackup-series-%25232%5D">OurSQL Episode 32: Backup tools you already have  [Backup series #2]</a></em></h3>
<p style="padding-left: 30px;">Discussion of mysqldump and mysqlhotcopy.</p>
<h3><em><a href="http://technocation.org/content/oursql-episode-33%3A-looking-through-lenz-(backup-series-%25233,-mylvmbackup)">OurSQL Episode 33: Looking Through the Lenz (Backup Series #3, mylvmbackup)</a></em></h3>
<p style="padding-left: 30px;">A conversation with Lenz Grimmer of Oracle about snapshot backups and his tool mylvmbackup</p>
<p style="padding-left: 30px;">
<p>Today will be episode 34 and it will be talking about the upcoming Collaborate conference in Orlando Florida. Sheeri and Matt Yonkovit have been gathering a stellar program.  I&#8217;m looking forward to hearing more about it.  This podcast will post on Friday.</p>
<p>We still have lots of ideas for the backup series, so don&#8217;t despair if we haven&#8217;t hit your favorite tool yet.  As always, please send us ideas and feedback via <a href="http://twitter.com/#!/oursqlcast">twitter</a> or our <a href="http://www.facebook.com/home.php?sk=group_132591230134157">facebook</a> page.</p>
<div id="node-1088">
<div>
<p><em> </em></p>
</div>
<p><em> </em></p>
</div>
<div id="node-1087">
<p><em> </em></p>
</div>
<p>Related posts:</p>
<ol>
<li><a href='http://technocation.org/content/oursql-episode-33%3A-looking-through-lenz-(backup-series-%25233,-mylvmbackup)' rel='bookmark' title='Permanent Link: OurSQL Episode 33: Looking Through the Lenz (Backup Series #3, mylvmbackup)'>OurSQL Episode 33: Looking Through the Lenz (Backup Series #3, mylvmbackup)</a></li>
<li><a href='http://technocation.org/content/oursql-episode-1%3A-backups,-backups-everywhere' rel='bookmark' title='Permanent Link: OurSQL Episode 1: Backups, Backups Everywhere'>OurSQL Episode 1: Backups, Backups Everywhere</a></li>
<li><a href='http://www.bluegecko.dk/mysql/oursql-podcast-revival/' rel='bookmark' title='Permanent Link: OurSQL Podcast revival'>OurSQL Podcast revival</a></li>
</ol>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Patrick Galbraith named Oracle ACE!</title>
		<link>https://bluegecko.dk/patrick-galbraith-named-oracle-ace/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=patrick-galbraith-named-oracle-ace</link>
		
		<dc:creator><![CDATA[cedwards]]></dc:creator>
		<pubDate>Thu, 27 Jan 2011 17:00:44 +0000</pubDate>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[News & Events]]></category>
		<guid isPermaLink="false">http://www.bluegecko.net/?p=2663</guid>

					<description><![CDATA[A big congratulations to our very own Patrick Galbraith, who has just been recognized as an Oracle Ace for MySQL!  In addition to being an absolute MySQL rock star, in his “spare time” he maintains DBD::mysql, DBD::drizzle, FederatedX storage engine and the Memcached Functions for MySQL. He has just authored “Developing Web Applications using Perl, [...]


Related posts:<ol><li><a href="http://www.bluegecko.net/our-people/patrick-galbraith/" rel="bookmark" title="Permanent Link: Patrick Galbraith">Patrick Galbraith</a></li>
<li><a href="http://www.bluegecko.net/news-events/blue-gecko-named-amazon-web-services-partner/" rel="bookmark" title="Permanent Link: Blue Gecko named Amazon Web Services partner">Blue Gecko named Amazon Web Services partner</a></li>
<li><a href="http://www.bluegecko.net/news-events/blue-gecko-is-one-of-the-fastest-growing-private-companies/" rel="bookmark" title="Permanent Link: Blue Gecko named to 2010 Inc. Magazine’s 5000 fastest growing companies in America!">Blue Gecko named to 2010 Inc. Magazine&#8217;s 5000 fastest growing companies in America!</a></li>
</ol>]]></description>
										<content:encoded><![CDATA[<p>A big congratulations to our very own Patrick Galbraith, who has just been recognized as an <a title="Patrick Gailbrath Oracle Ace" href="http://apex.oracle.com/pls/otn/f?p=19297:4:896909223092578::NO:4:P4_ID:3300" >Oracle Ace for MySQL</a>!  In addition to being an absolute MySQL rock star, in his “spare time” he maintains DBD::mysql, DBD::drizzle,  FederatedX storage engine and the Memcached Functions for MySQL. He has  just authored “Developing Web Applications using Perl, Memcached, MySQL,  and Apache”.</p>
<p>Patrick joined Blue Gecko in 2010 and has been nothing short of spectacular, navigating customers through an unbelievably varied word of LAMP challenges that go far beyond even the most liberal definitions of &#8220;remote DBA.&#8221;  one of the most truly service-oriented technical people I&#8217;ve had the privilege of working with and just a cool guy to meet, the award couldn&#8217;t be more well-deserved.</p>
<p>Congrats again, Patrick!!</p>
<p>Related posts:</p>
<ol>
<li><a href='http://www.bluegecko.dk/our-people/patrick-galbraith/' rel='bookmark' title='Permanent Link: Patrick Galbraith'>Patrick Galbraith</a></li>
<li><a href='http://www.bluegecko.dk/news-events/blue-gecko-named-amazon-web-services-partner/' rel='bookmark' title='Permanent Link: Blue Gecko named Amazon Web Services partner'>Blue Gecko named Amazon Web Services partner</a></li>
<li><a href='http://www.bluegecko.dk/news-events/blue-gecko-is-one-of-the-fastest-growing-private-companies/' rel='bookmark' title='Permanent Link: Blue Gecko named to 2010 Inc. Magazine&#8217;s 5000 fastest growing companies in America!'>Blue Gecko named to 2010 Inc. Magazine&#8217;s 5000 fastest growing companies in America!</a></li>
</ol>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>2011 MySQL community dinner (west) at the O’Reilly MySQL Conference</title>
		<link>https://bluegecko.dk/2011-mysql-community-dinner-west-at-the-oreilly-mysql-conference/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=2011-mysql-community-dinner-west-at-the-oreilly-mysql-conference</link>
		
		<dc:creator><![CDATA[snovotny]]></dc:creator>
		<pubDate>Tue, 25 Jan 2011 08:13:08 +0000</pubDate>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[News & Events]]></category>
		<guid isPermaLink="false">http://www.bluegecko.net/?p=2645</guid>

					<description><![CDATA[This year&#8217;s facts: What: MySQL community dinner (west) Who: me, you, and many MySQL community members When: Monday, April 11th – Meet at 6:30 at the Hyatt Santa Clara or at 7 pm at the restaurant Where: Pedro’s Restaurant and Cantina – 3935 Freedom Circle, Santa Clara, CA 95054 How: Please RSVP and share this invitation [...]


Related posts:<ol><li><a href="http://www.bluegecko.net/mysql/blue-gecko-at-the-2011-mysql-conference/" rel="bookmark" title="Permanent Link: Blue Gecko at the 2011 MySQL Conference">Blue Gecko at the 2011 MySQL Conference</a></li>
<li><a href="http://www.bluegecko.net/mysql/mysql-council-activities-and-presence-at-collaborate-and-mysql-conference/" rel="bookmark" title="Permanent Link: MySQL Council activities and presence at Collaborate and MySQL Conference">MySQL Council activities and presence at Collaborate and MySQL Conference</a></li>
<li><a href="http://www.bluegecko.net/events/mysql-scaling-operations/" rel="bookmark" title="Permanent Link: Velocity 2010 – MySQL Scaling &#38; Operations">Velocity 2010 &#8211; MySQL Scaling &#038; Operations</a></li>
</ol>]]></description>
										<content:encoded><![CDATA[<p>This year&#8217;s facts:<br />
What: MySQL community dinner (west)<br />
Who: me, you, and many MySQL community members<br />
When: Monday, April 11th – Meet at 6:30 at the Hyatt Santa Clara or at 7 pm at the restaurant<br />
Where: <a href="http://www.pedrosrestaurants.com/">Pedro’s Restaurant and Cantina</a> – 3935 Freedom Circle, Santa Clara, CA 95054<br />
How: <a href="http://2011mysqlcommunitydinnerwest.eventbrite.com/" >Please RSVP</a> and share this invitation with the community.<span id="more-2645"></span></p>
<p>I was sad that last year I missed the community dinner that Sheeri hosted.  Since she&#8217;s going to be in Orlando at Collaborate, I&#8217;d like to host a MySQL community dinner (west). Just as last year this will be a community (pay-your-own-way) dinner on <strong>Monday</strong>, April 11th, at <a href="http://www.pedrosrestaurants.com/">Pedro’s</a> – a Mexican restaurant that has vegetarian and vegan options.</p>
<p>I&#8217;m sticking with the plan of Monday after the tutorials, but before the actual conference sessions begin on Tuesday.  RSVPs are being collected at <a href="http://2011mysqlcommunitydinnerwest.eventbrite.com/" >Eventbrite</a>.</p>
<p>Meet us at 6:30 pm on Monday in the lobby of the Hyatt Santa Clara, or at 7 pm at Pedro’s. If you want to come later, just show up at Pedro’s whenever you can. As always I look forward to seeing you all and sharing some libations!</p>
<p>Related posts:</p>
<ol>
<li><a href='http://www.bluegecko.dk/mysql/blue-gecko-at-the-2011-mysql-conference/' rel='bookmark' title='Permanent Link: Blue Gecko at the 2011 MySQL Conference'>Blue Gecko at the 2011 MySQL Conference</a></li>
<li><a href='http://www.bluegecko.dk/mysql/mysql-council-activities-and-presence-at-collaborate-and-mysql-conference/' rel='bookmark' title='Permanent Link: MySQL Council activities and presence at Collaborate and MySQL Conference'>MySQL Council activities and presence at Collaborate and MySQL Conference</a></li>
<li><a href='http://www.bluegecko.dk/events/mysql-scaling-operations/' rel='bookmark' title='Permanent Link: Velocity 2010 &#8211; MySQL Scaling &#038; Operations'>Velocity 2010 &#8211; MySQL Scaling &#038; Operations</a></li>
</ol>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>MySQL Gotchas on Debian (and Ubuntu)</title>
		<link>https://bluegecko.dk/mysql-gotchas-on-debian-and-ubuntu/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=mysql-gotchas-on-debian-and-ubuntu</link>
					<comments>https://bluegecko.dk/mysql-gotchas-on-debian-and-ubuntu/#comments</comments>
		
		<dc:creator><![CDATA[snovotny]]></dc:creator>
		<pubDate>Thu, 02 Dec 2010 22:25:27 +0000</pubDate>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[Remote DBA]]></category>
		<guid isPermaLink="false">http://www.bluegecko.net/?p=2302</guid>

					<description><![CDATA[Blue Gecko works with clients who run many different operating systems.  Our preference generally is RedHat Enterprise Linux or CentOS, but we have customers who range far and wide from there including Solaris, Windows, SuSE, and (more and more) Debian and Ubuntu. As we&#8217;ve become more familiar with Debian and Ubuntu we have found that [...]


Related posts:<ol><li><a href="http://www.bluegecko.net/mysql/mysql-5-1ga/" rel="bookmark" title="Permanent Link: MySQL 5.1GA">MySQL 5.1GA</a></li>
<li><a href="http://www.bluegecko.net/mysql/percona-server-goodies/" rel="bookmark" title="Permanent Link: Percona Server Goodies">Percona Server Goodies</a></li>
<li><a href="http://www.bluegecko.net/oracle/mysql-editions-and-support-what-do-i-get-with-community/" rel="bookmark" title="Permanent Link: MySQL Editions and Support-  what do I get with community?">MySQL Editions and Support-  what do I get with community?</a></li>
</ol>]]></description>
										<content:encoded><![CDATA[<p>Blue Gecko works with clients who run many different operating systems.  Our preference generally is RedHat Enterprise Linux or CentOS, but we have customers who range far and wide from there including Solaris, Windows, SuSE, and (more and more) Debian and Ubuntu.</p>
<p>As we&#8217;ve become more familiar with Debian and Ubuntu we have found that those customers who use the MySQL packages that are distributed with these OSs have a few quirks to be aware of.<span id="more-2302"></span></p>
<p><span style="font-size: 13.3333px;">Baron Schwartz posted a long description of one of these, the challenge with <a href="http://www.mysqlperformanceblog.com/2009/01/28/the-perils-of-innodb-with-debian-and-startup-scripts/" >/etc/mysql/debian-start</a> at the MySQL Performance Blog.  In the short version, if this script isn&#8217;t disabled, it will run a mysqlcheck each time /etc/init.d/mysql start is invoked.  This has been changed in later versions of Debian, but legacy systems may still have this issue.  We&#8217;ve run into it with new clients (bringing us older systems) as recently as this week.</span></p>
<p><span style="font-size: 13.3333px;"> Another gotcha that we&#8217;ve run into is the default behavior of putting an include at the bottom of the /etc/my.cnf.  Since we often come into machines that have been set up by someone else, we start with an audit of the database.  When we went to make some changes to /etc/my.cnf to tune some variables there was some initial confusion since those configuration changes had been made in an included file.   Easily sorted out,  but momentarily annoying none the less.</span></p>
<p><span style="font-size: 13.3333px;">And lastly, Debian&#8217;s MySQL is configured to send all the MySQL logs to syslog.  Now, I&#8217;m generally in favor of using the syslog infrastructure for logging where possible, but it is definitely non-standard for MySQL.   On the positive side, it does add the benefit of rotating the error logs for you.</span></p>
<p><span style="font-size: 13.3333px;"> </span><span style="font-size: 13.3333px;">I&#8217;d love to hear about other non-standard customizations in the MySQL packages for Debian and Ubuntu and other distributions.  Drop them in the comments.  To simplify management, we generally use the packages from <a href="http://www.mysql.com/downloads/" >MySQL</a> in order to have the most recent GA version as well as a standard filesystem layout.</span></p>
<p>Related posts:</p>
<ol>
<li><a href='http://www.bluegecko.dk/mysql/mysql-5-1ga/' rel='bookmark' title='Permanent Link: MySQL 5.1GA'>MySQL 5.1GA</a></li>
<li><a href='http://www.bluegecko.dk/mysql/percona-server-goodies/' rel='bookmark' title='Permanent Link: Percona Server Goodies'>Percona Server Goodies</a></li>
<li><a href='http://www.bluegecko.dk/oracle/mysql-editions-and-support-what-do-i-get-with-community/' rel='bookmark' title='Permanent Link: MySQL Editions and Support-  what do I get with community?'>MySQL Editions and Support-  what do I get with community?</a></li>
</ol>
]]></content:encoded>
					
					<wfw:commentRss>https://bluegecko.dk/mysql-gotchas-on-debian-and-ubuntu/feed/</wfw:commentRss>
			<slash:comments>6</slash:comments>
		
		
			</item>
	</channel>
</rss>

<!--
Performance optimized by W3 Total Cache. Learn more: https://www.boldgrid.com/w3-total-cache/

Object Caching 27/271 objects using disk
Page Caching using disk: enhanced 

Served from: bluegecko.dk @ 2026-10-16 22:54:33 by W3 Total Cache
-->