<?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>Chris on MySQL</title>
	<atom:link href="http://www.chriscalender.com/?feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://www.chriscalender.com</link>
	<description>Tips and Solutions for MySQL, MySQL Proxy, and other MySQL-related Topics</description>
	<lastBuildDate>Fri, 05 Apr 2013 18:11:35 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Building MySQL and MariaDB on Windows using Visual Studio 2012 Express versus Visual Studio 2010 Express</title>
		<link>http://www.chriscalender.com/?p=1245</link>
		<comments>http://www.chriscalender.com/?p=1245#comments</comments>
		<pubDate>Fri, 05 Apr 2013 18:10:36 +0000</pubDate>
		<dc:creator>chris</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[SkySQL]]></category>
		<category><![CDATA[build mariadb]]></category>
		<category><![CDATA[build mariadb 10.0]]></category>
		<category><![CDATA[build mysql]]></category>
		<category><![CDATA[build mysql 5.6]]></category>
		<category><![CDATA[building mariadb]]></category>
		<category><![CDATA[building mariadb 10.0]]></category>
		<category><![CDATA[building mysql]]></category>
		<category><![CDATA[building mysql 5.6]]></category>
		<category><![CDATA[compile mariadb]]></category>
		<category><![CDATA[compile mariadb 10.0]]></category>
		<category><![CDATA[compile mysql]]></category>
		<category><![CDATA[compile mysql 5.6]]></category>
		<category><![CDATA[compiling mariadb]]></category>
		<category><![CDATA[compiling mariadb 10.0]]></category>
		<category><![CDATA[compiling mysql]]></category>
		<category><![CDATA[compiling mysql 5.6]]></category>
		<category><![CDATA[how to build mariadb 5.6 on windows]]></category>
		<category><![CDATA[how to build mariadb on windows]]></category>
		<category><![CDATA[how to build mysql 5.6 on windows]]></category>
		<category><![CDATA[how to build mysql on windows]]></category>
		<category><![CDATA[visual studio 2010 express]]></category>
		<category><![CDATA[visual studio 2012 express]]></category>

		<guid isPermaLink="false">http://www.chriscalender.com/?p=1245</guid>
		<description><![CDATA[Building MySQL and MariaDB on Windows using Visual Studio 2012 Express versus Visual Studio 2010 Express]]></description>
			<content:encoded><![CDATA[<p>I mentioned in a <a href='http://www.chriscalender.com/?p=1233'>recent post</a> (and another <a href='http://www.chriscalender.com/?p=1224'>recent, related post</a>) I was going to try Visual Studio 2012 Express (as opposed to VS 2010 Express) for building MySQL 5.6 and MariaDB 10.0. on Windows.</p>
<p>I followed the exact same steps, but MySQL 5.6.10 would not build without fatal errors in 2012 (whereas it worked fine with VS 2010).  Unfortunately, the fail errors were not too descriptive, so not quite sure what to do yet to fix it.  Here is a brief snippet for those interested:</p>
<pre>...
Done Building Project "C:\...\bld\sql\udf_example.vcxproj" (default targets).
Done Building Project "C:\...\bld\ALL_BUILD.vcxproj" (default targets) -- FAILED.
Done Building Project "c:\...\bld\package.vcxproj" (default targets) -- FAILED.
...
Build FAILED.
...
<the 6 warnings ...>
"c:\mysql\mysql-5.6.10\bld\package.vcxproj" (default target) (1) ->
"C:\mysql\mysql-5.6.10\bld\ALL_BUILD.vcxproj" (default target) (2) ->
"C:\mysql\mysql-5.6.10\bld\plugin\audit_null\audit_null.vcxproj" (default target) (18) ->
"C:\mysql\mysql-5.6.10\bld\sql\mysqld.vcxproj" (default target) (19) ->
(Link target) ->
  mysqld.exp : error LNK2001: unresolved external symbol
  _xmm@7fffffffffffffff7fffffffffffffff [C:\mysql\mysql-5.6.10\bld\sql\mysqld.vcxproj]
  C:\mysql\mysql-5.6.10\bld\sql\RelWithDebInfo\mysqld.exe : fatal error LNK1120:
  1 unresolved externals [C:\mysql\mysql-5.6.10\bld\sql\mysqld.vcxproj]

    6 Warning(s)
    2 Error(s)

Time Elapsed 00:01:06.67</pre>
<p>On the plus side, MariaDB 10.0.1 compiled just fine with both Visual Studio 2012 Express and Visual Studio 2010 Express!  So I was really happy about that. <img src='http://www.chriscalender.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>I thought I could just keep both VSs installed, but they don&#8217;t seem to want to play nice, even when specifying the following for the MySQL 5.6 build (perhaps that&#8217;s just me though):</p>
<pre>cmake .. -G "Visual Studio 10"</pre>
<p>So, if you are building your own on Windows, then you may want to keep the above in mind (my tests have been on Windows 7 64-bit, fwiw).</p>
<p>I&#8217;ll continue to test, and post anything useful if there&#8217;s something worth mentioning.</p>
<p>&nbsp;</p>
<p><b>Related Build Links:</b></p>
<ul>
<li>Building MySQL and MariaDB on Windows using Visual Studio 2012 Express versus Visual Studio 2010 Express:<br />
<a href='http://www.chriscalender.com/?p=1245'>http://www.chriscalender.com/?p=1245</a></p>
<li>How to Build MySQL 5.6 on Windows from Source Code:<br />
<a href='http://www.chriscalender.com/?p=1233'>http://www.chriscalender.com/?p=1233</a></p>
<li>How to Build MariaDB 10.0 on Windows from Source Code:<br />
<a href='http://www.chriscalender.com/?p=1224'>http://www.chriscalender.com/?p=1224</a></p>
<li>How to Build MariaDB 5.5 on Windows from Source Code:<br />
<a href='http://www.chriscalender.com/?p=1087'>http://www.chriscalender.com/?p=1087</a></p>
<li>How to Build MySQL 5.5 on Windows from Source Code:<br />
<a href='http://www.chriscalender.com/?p=689'>http://www.chriscalender.com/?p=689</a></p>
<li>Building MariaDB 5.1 on Windows:<br />
<a href='http://www.chriscalender.com/?p=736'>http://www.chriscalender.com/?p=736</a></p>
<li>Building MariaDB 5.3 on Windows:<br />
<a href='http://www.chriscalender.com/?p=864'>http://www.chriscalender.com/?p=864</a></p>
<li>MySQL 5.5 Windows Build Appendix : Full Outputs and Common Errors from Building MySQL 5.5 on Windows:<br />
<a href='http://www.chriscalender.com/?p=720'>http://www.chriscalender.com/?p=720</a></p>
<li>Maintaining (and Building) your MySQL Source Tree on Windows:<br />
<a href='http://www.chriscalender.com/?p=759'>http://www.chriscalender.com/?p=759</a></p>
<li>Resolving the bison.exe m4 Invalid argument Error when building MySQL/MariaDB/XtraDB on Windows:<br />
<a href='http://www.chriscalender.com/?p=798'>http://www.chriscalender.com/?p=798</a></p>
<li>Building XtraDB on Windows:<br />
<a href='http://www.chriscalender.com/?p=820'>http://www.chriscalender.com/?p=820</a></p>
</ul>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.chriscalender.com/?feed=rss2&#038;p=1245</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Awesome to see the MySQL Ecosystem Flourishing</title>
		<link>http://www.chriscalender.com/?p=1239</link>
		<comments>http://www.chriscalender.com/?p=1239#comments</comments>
		<pubDate>Sun, 31 Mar 2013 00:08:10 +0000</pubDate>
		<dc:creator>chris</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[SkySQL]]></category>
		<category><![CDATA[innodb]]></category>
		<category><![CDATA[mariadb]]></category>
		<category><![CDATA[mysql community]]></category>
		<category><![CDATA[MySQL Conference]]></category>
		<category><![CDATA[mysql ecosystem]]></category>
		<category><![CDATA[skysql]]></category>

		<guid isPermaLink="false">http://www.chriscalender.com/?p=1239</guid>
		<description><![CDATA[With the upcoming conferences and recent GA releases, it is awesome to see the MySQL Ecosystem flourishing!]]></description>
			<content:encoded><![CDATA[<p>I just wanted to take a moment and thank, notice, what ever you want to call it, but share some love with all those and all things MySQL.</p>
<p>I read the post <a href='https://blogs.oracle.com/MySQL/entry/let_s_celebrate_mysql_5' target='_blank'>Let’s Celebrate MySQL 5.6 GA! &#8211; MySQL Community Reception by Oracle</a> by Oracle MySQL Group and it got me to thinking of how proud I am of (and proud to be a part of) the whole MySQL Ecosystem.</p>
<p>We *should* all celebrate MySQL 5.6 GA!  I well remember the 3.22 and 3.23 days, and there were many folks before me already using MySQL!!!  </p>
<p>I love to see how it has continued to grow, the ecosystem and all things MySQL, that is.  MySQL is better than ever.  MariaDB is better than ever.  Percona Server is better than ever.  You have great Support options with MySQL/Oracle, SkySQL/MariaDB, and Percona as well &#8211; not to mention numerous others.  I just love the fact that everyone is flourishing, and improving, and the technology continues to advance and most importantly, everyone is working together to provide a great software and service to all MySQL/MariaDB/InnoDB/XtraDB/etc-related users out there.</p>
<p>Not to mention the monitoring softwares, the various plugins and connectors, the numerous storage engines, the number of 3rd party apps &#038; helpful scripts, User Conferences, local meet-ups, books, tutorials, the number of Community bloggers who freely and spiritedly share their knowledge, time, advice, ideas, concerns, and so on.  It&#8217;s just a great Community to be a part of, and I&#8217;m thrilled to see how it&#8217;s grown, and continues to grow over the years.  And that&#8217;s just a testament of the quality of all you great people out there involved and helping. <img src='http://www.chriscalender.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>I won&#8217;t get too mushy, but it is great to see the MySQL Ecosystem and all of those in it flourish, and may it continue for many, many years to come! <img src='http://www.chriscalender.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Big thanks to everyone out there contributing!  &#8220;It takes a village, and we are that village&#8221;, as my wife always says. <img src='http://www.chriscalender.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.chriscalender.com/?feed=rss2&#038;p=1239</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Build MySQL 5.6 on Windows from Source Code</title>
		<link>http://www.chriscalender.com/?p=1233</link>
		<comments>http://www.chriscalender.com/?p=1233#comments</comments>
		<pubDate>Thu, 28 Mar 2013 17:09:49 +0000</pubDate>
		<dc:creator>chris</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[SkySQL]]></category>
		<category><![CDATA[build mysql]]></category>
		<category><![CDATA[build mysql 5.6]]></category>
		<category><![CDATA[building mysql]]></category>
		<category><![CDATA[building mysql 5.6]]></category>
		<category><![CDATA[compile mysql]]></category>
		<category><![CDATA[compile mysql 5.6]]></category>
		<category><![CDATA[compiling mysql]]></category>
		<category><![CDATA[compiling mysql 5.6]]></category>
		<category><![CDATA[how to build mysql 5.6 on windows]]></category>
		<category><![CDATA[how to build mysql on windows]]></category>

		<guid isPermaLink="false">http://www.chriscalender.com/?p=1233</guid>
		<description><![CDATA[How to Build MySQL 5.6 on Windows from Source Code]]></description>
			<content:encoded><![CDATA[<p>I just set up a new Windows 7 machine, and built MySQL 5.6 for the first time, so I wanted to share my steps for anyone interested.</p>
<p>** Prerequisites **<br />
1. Install <a href='http://www.microsoft.com/visualstudio/eng/products/visual-studio-2010-express' target='blank'>Microsoft Visual Studio</a> (I installed VS 2010 Express &#8211; free)<br />
2. Install <a href='http://www.cmake.org/' target='blank'>cmake</a><br />
3. Install <a href='http://gnuwin32.sourceforge.net/packages/bison.htm' target='blank'>bison</a> (make sure no spaces in path)</p>
<p>** Build Instructions **</p>
<pre>cd c:\mysql\mysql-5.6.10
mkdir bld
cd bld
cmake ..
cmake --build . --config relwithdebinfo --target package</pre>
<p>(You don&#8217;t technically need the &#8216;bld&#8217; dir, but I prefer it to keep the main dir &#8216;clean&#8217;.  Then if you need to re-build, you can quickly just delete the whole &#8216;bld&#8217; directory, and start fresh.)</p>
<p>Here is my actual output for those interested:</p>
<pre>c:\>cd c:\mysql\mysql-5.6.10
c:\mysql\mysql-5.6.10>mkdir bld
c:\mysql\mysql-5.6.10>cd bld
c:\mysql\mysql-5.6.10\bld>cmake ..
-- Building for: Visual Studio 10
-- Running cmake version 2.8.10.2
-- The C compiler identification is MSVC 16.0.30319.1
-- The CXX compiler identification is MSVC 16.0.30319.1
-- Check for working C compiler using: Visual Studio 10
-- Check for working C compiler using: Visual Studio 10 -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler using: Visual Studio 10
-- Check for working CXX compiler using: Visual Studio 10 -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check size of void *
-- Check size of void * - done
-- MySQL 5.6.10
-- Packaging as: mysql-5.6.10-win32
-- Looking for include file sasl/sasl.h
-- Looking for include file sasl/sasl.h - not found
-- Looking for include file sys/devpoll.h
-- Looking for include file sys/devpoll.h - not found
-- Looking for include file signal.h
-- Looking for include file signal.h - found
-- Looking for include file sys/devpoll.h
-- Looking for include file sys/devpoll.h - not found
-- Looking for include file sys/epoll.h
-- Looking for include file sys/epoll.h - not found
-- Looking for include file sys/event.h
-- Looking for include file sys/event.h - not found
-- Looking for include file sys/queue.h
-- Looking for include file sys/queue.h - not found
-- Looking for TAILQ_FOREACH
-- Looking for TAILQ_FOREACH - not found
-- Looking for include file pthread.h
-- Looking for include file pthread.h - not found
-- Found Threads: TRUE
-- Looking for _aligned_malloc
-- Looking for _aligned_malloc - found
-- Looking for _aligned_free
-- Looking for _aligned_free - found
-- Looking for fedisableexcept
-- Looking for fedisableexcept - not found
-- Looking for posix_memalign
-- Looking for posix_memalign - not found
-- Looking for ntohll
-- Looking for ntohll - not found
-- Looking for clock_gettime
-- Looking for clock_gettime - not found
-- Looking for epoll_create
-- Looking for epoll_create - not found
-- Looking for epoll_ctl
-- Looking for epoll_ctl - not found
-- Looking for inet_ntop
-- Looking for inet_ntop - not found
-- Looking for kqueue
-- Looking for kqueue - not found
-- Looking for kqueue
-- Looking for kqueue - not found
-- Looking for signal
-- Looking for signal - found
-- Looking for timeradd
-- Looking for timeradd - not found
-- Looking for timerclear
-- Looking for timerclear - not found
-- Looking for timercmp
-- Looking for timercmp - not found
-- Looking for timerisset
-- Looking for timerisset - not found
-- Check size of time_t
-- Check size of time_t - done
-- Performing Test TIME_T_UNSIGNED
-- Performing Test TIME_T_UNSIGNED - Failed
-- Looking for sched_getcpu
-- Looking for sched_getcpu - not found
-- Looking for asprintf
-- Looking for asprintf - not found
-- Using cmake version 2.8.10.2
-- Not building NDB
-- Googlemock was not found. gtest-based unit tests will be disabled. You can run cmake . -DENABLE_DOWNLOADS=1 to automatically download and build required components from source.
-- If you are inside a firewall, you may need to use an http proxy: export http_proxy=http://foo.bar.com:80
-- Cannot find wix 3, installer project will not be generated
-- Configuring done
-- Generating done
-- Build files have been written to: C:/mysql/mysql-5.6.10

c:\mysql\mysql-5.6.10\bld>cmake --build . --config relwithdebinfo --target package
...
... tons of build/compilation output ...
...
    406 Warning(s)
    0 Error(s)

Time Elapsed 00:16:46.65</pre>
<p>There you go!</p>
<p>The zip package (mysql-5.6.10-win32.zip in this case) will be located in bld/.</p>
<p>I will say that is a lot of warnings, though I&#8217;m fairly used to them on Windows.  However, I plan to try VS 2012 Express to see if that makes any difference.</p>
<p>Hope this helps. <img src='http://www.chriscalender.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.chriscalender.com/?feed=rss2&#038;p=1233</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Build MariaDB 10.0 on Windows from Source Code</title>
		<link>http://www.chriscalender.com/?p=1224</link>
		<comments>http://www.chriscalender.com/?p=1224#comments</comments>
		<pubDate>Wed, 27 Mar 2013 01:48:26 +0000</pubDate>
		<dc:creator>chris</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[SkySQL]]></category>
		<category><![CDATA[build mariadb]]></category>
		<category><![CDATA[build mariadb 10.0]]></category>
		<category><![CDATA[build mysql]]></category>
		<category><![CDATA[compile mariadb]]></category>
		<category><![CDATA[compile mariadb 10.0]]></category>
		<category><![CDATA[compile mysql]]></category>
		<category><![CDATA[how to build maria on windows]]></category>
		<category><![CDATA[how to build mariadb on windows]]></category>
		<category><![CDATA[how to build mysql on windows]]></category>
		<category><![CDATA[innodb]]></category>
		<category><![CDATA[innodb plugin]]></category>
		<category><![CDATA[innodb plugin with mariadb 10.0]]></category>

		<guid isPermaLink="false">http://www.chriscalender.com/?p=1224</guid>
		<description><![CDATA[How to Build MariaDB 10.0 on Windows from Source Code]]></description>
			<content:encoded><![CDATA[<p>I just wanted to share my steps for building MariaDB 10.0 on Windows (10.0.1 in this case):</p>
<pre>cd maria-10.0.1
mkdir bld
cd bld
cmake .. -G "Visual Studio 10"
cmake --build . --config relwithdebinfo --target package</pre>
<p>That&#8217;s it!  The zip file is created right there in bld/.</p>
<p>Hope this helps. <img src='http://www.chriscalender.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.chriscalender.com/?feed=rss2&#038;p=1224</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>SkySQL &amp; MariaDB&#8217;s 2nd Annual MySQL &amp; Cloud Database Solutions Day</title>
		<link>http://www.chriscalender.com/?p=1219</link>
		<comments>http://www.chriscalender.com/?p=1219#comments</comments>
		<pubDate>Tue, 26 Mar 2013 19:47:23 +0000</pubDate>
		<dc:creator>chris</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[SkySQL]]></category>
		<category><![CDATA[MariaDB and SkySQL's Solutions Day]]></category>
		<category><![CDATA[MariaDB Expo]]></category>
		<category><![CDATA[MySQL Conference and Expo]]></category>
		<category><![CDATA[MySQL Conference and Expo 2013]]></category>
		<category><![CDATA[SkySQL & MariaDB's 2nd Annual MySQL & Cloud Database Solutions Day]]></category>
		<category><![CDATA[SkySQL Expo]]></category>

		<guid isPermaLink="false">http://www.chriscalender.com/?p=1219</guid>
		<description><![CDATA[SkySQL &#038; MariaDB's 2nd Annual MySQL &#038; Cloud Database Solutions Day]]></description>
			<content:encoded><![CDATA[<p>As the press release says: &#8220;Come have a (free) beer with Monty: SkySQL &#038; MariaDB&#8217;s 2nd Annual MySQL &#038; Cloud Database Solutions Day&#8221;!</p>
<p>&#8220;Are you planning on being in Santa Clara for Percona Live: MySQL Conference and Expo in April? If so, don&#8217;t let the learning and networking stop on Thursday!</p>
<p>We invite you to join SkySQL &#038; MariaDB for our 2nd Annual MySQL® &#038; Cloud Database Solutions Day, Friday, April 26, 2013 at the Hyatt Regency Santa Clara. This event will be taking place directly after the Percona Live event.</p>
<p>During this free one-day event, you will receive hands-on training and consulting on MySQL and MariaDB database solutions from the experts at SkySQL, MariaDB, and their partners.&#8221;</p>
<p>Speakers will include Big Data, Analytics and Cloud experts, as well as SkySQL customers and MariaDB users. Including:</p>
<p>Monty Widenius &#8211; MariaDB<br />
Yoshinori Matsunobu &#8211; Facebook<br />
Seppo Jaakola &#8211; Codership<br />
Kyle MacDonald &#8211; OpenStack Foundation<br />
<a href='http://www.skysql.com/content/mysql-cloud-database-solutions-day-speakers' target='_blank'>Full Speaker List</a></p>
<p>&#8220;The event will feature two technical tracks: one focused on the MySQL database and related technologies, and the second on best practices for deploying database applications in the Cloud.&#8221;</p>
<p>To learn more, take a look at our event schedule, featured speakers, and venue and please register today:</p>
<p><a href='http://info.skysql.com/roadshow2013-0' target='_blank'>Register Today</a><br />
<a href='http://www.skysql.com/content/mysql-cloud-solutions-day-schedule' target='_blank'>Full Schedule</a></p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.chriscalender.com/?feed=rss2&#038;p=1219</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Enabling the Verbose InnoDB Lock Monitor in MariaDB and Percona Server for XtraDB+ and XtraDB</title>
		<link>http://www.chriscalender.com/?p=1215</link>
		<comments>http://www.chriscalender.com/?p=1215#comments</comments>
		<pubDate>Tue, 26 Mar 2013 00:57:28 +0000</pubDate>
		<dc:creator>chris</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[SkySQL]]></category>
		<category><![CDATA[innodb]]></category>
		<category><![CDATA[innodb lock]]></category>
		<category><![CDATA[innodb lock monitor]]></category>
		<category><![CDATA[innodb lock troubleshooting]]></category>
		<category><![CDATA[innodb monitor]]></category>
		<category><![CDATA[innodb_lock_monitor]]></category>
		<category><![CDATA[innodb_show_locks_held]]></category>
		<category><![CDATA[innodb_show_verbose_locks]]></category>
		<category><![CDATA[mariadb]]></category>
		<category><![CDATA[percona server]]></category>
		<category><![CDATA[XtraDB]]></category>

		<guid isPermaLink="false">http://www.chriscalender.com/?p=1215</guid>
		<description><![CDATA[Enabling the Verbose InnoDB Lock Monitor in MariaDB and Percona Server for XtraDB+ and XtraDB]]></description>
			<content:encoded><![CDATA[<p>I enabled the <a href='http://dev.mysql.com/doc/refman/5.5/en/innodb-monitors.html#innodb-standard-monitor' target='_blank'>InnoDB Lock Monitor</a> in my MariaDB 5.5 instance (using XtraDB+ as the InnoDB &#8211; which is the default in MariaDB) and noticed that while the SHOW ENGINE INNODB STATUS was being logged to the error log, it wasn&#8217;t logging the &#8220;additional&#8221; lock information &#8211; it just looked like the plain &#8216;ole INNODB STATUS.</p>
<p>Long story short, Percona added a new variable so one has better control over what gets logged:</p>
<pre>innodb_show_verbose_locks</pre>
<p>If off (default), then the InnoDB Lock Monitor logs the normal INNODB STATUS, and if enabled, then it logs it with the extended lock information.</p>
<p>They also created another variable that goes along with this one (and the InnoDB Lock Monitor), which is:</p>
<pre>innodb_show_locks_held</pre>
<p>This variable indicates the number of locks to print that are held for each InnoDB transaction (the default is 10, max is 1000).</p>
<p>For reference, these 2 options are discussed further in <a href='http://www.percona.com/doc/percona-server/5.5/diagnostics/innodb_show_status.html' target='_blank'>Percona&#8217;s manual</a>.</p>
<p>Hope this helps. <img src='http://www.chriscalender.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.chriscalender.com/?feed=rss2&#038;p=1215</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Dealing with the dreaded &#8220;The printer is out of paper&#8221; or ERROR_OUT_OF_PAPER Error on Windows ;)</title>
		<link>http://www.chriscalender.com/?p=1210</link>
		<comments>http://www.chriscalender.com/?p=1210#comments</comments>
		<pubDate>Wed, 20 Mar 2013 15:16:00 +0000</pubDate>
		<dc:creator>chris</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[SkySQL]]></category>
		<category><![CDATA[errno: 28]]></category>
		<category><![CDATA[error code 28]]></category>
		<category><![CDATA[error writing file]]></category>
		<category><![CDATA[ERROR_OUT_OF_PAPER]]></category>
		<category><![CDATA[fill up mysql log]]></category>
		<category><![CDATA[MySQL Windows]]></category>
		<category><![CDATA[perror 28]]></category>
		<category><![CDATA[The printer is out of paper]]></category>
		<category><![CDATA[what happens when mysql log is full]]></category>

		<guid isPermaLink="false">http://www.chriscalender.com/?p=1210</guid>
		<description><![CDATA[Dealing with the dreaded "The printer is out of paper" or ERROR_OUT_OF_PAPER Error on Windows ;)]]></description>
			<content:encoded><![CDATA[<p>Caution: This is just a fun post. <img src='http://www.chriscalender.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
<p>I was performing some testing on Windows the other day and encountered the following error in the error log:</p>
<pre>130313  9:40:03 [ERROR] Error writing file 'G:\mysql\log.txt' (errno: 28)</pre>
<p>Quickly, I ran &#8220;perror 28&#8243; from the command line:</p>
<pre>c:\>perror 28
Win32 error code 28: The printer is out of paper.</pre>
<p>Hehe, really, Windows?!?</p>
<p>In fact, the drive was out of space.  No more could be written to the general log, hence the error.</p>
<p>Fwiw, the Linux OS code 28 reports what you would expect:</p>
<pre>OS error code  28:  No space left on device</pre>
<p>So, if you ever run into &#8220;The printer is out of paper&#8221; error, you&#8217;ll know what to do. <img src='http://www.chriscalender.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.chriscalender.com/?feed=rss2&#038;p=1210</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>InnoDB Plugin Version Numbering in MySQL and MariaDB</title>
		<link>http://www.chriscalender.com/?p=1205</link>
		<comments>http://www.chriscalender.com/?p=1205#comments</comments>
		<pubDate>Mon, 18 Mar 2013 23:20:19 +0000</pubDate>
		<dc:creator>chris</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[SkySQL]]></category>
		<category><![CDATA[innodb plugin]]></category>
		<category><![CDATA[innodb plugin for mariadb]]></category>
		<category><![CDATA[innodb plugin for mysql]]></category>
		<category><![CDATA[innodb plugin history]]></category>
		<category><![CDATA[InnoDB Plugin Versions]]></category>
		<category><![CDATA[innodb versions]]></category>
		<category><![CDATA[mariadb's innodb]]></category>
		<category><![CDATA[mysql versions]]></category>
		<category><![CDATA[XtraDB]]></category>

		<guid isPermaLink="false">http://www.chriscalender.com/?p=1205</guid>
		<description><![CDATA[InnoDB Plugin Version Numbering in MySQL and MariaDB]]></description>
			<content:encoded><![CDATA[<p>As some of you may or may not know, I&#8217;ve maintained a list of all <a href='http://www.chriscalender.com/?page_id=628'>InnoDB Plugin versions</a> as they&#8217;ve historically contained a different version (entirely different numbering scheme) than the MySQL distribution they were included with.</p>
<p>This list was most helpful for troubleshooting various InnoDB issues when the plugin may (or may not) have been involved, and/or for benchmarking, etc.  And it&#8217;s fair to say it was more useful when the InnoDB plugin was not the mainstream, which it is now.</p>
<p>However, with the latest releases, in MySQL and MariaDB, the &#8220;InnoDB Version&#8221; simply matches the &#8220;MySQL Version&#8221;.  These &#8220;latest releases&#8221; include: MySQL 5.6.10, MySQL 5.5.30, MySQL 5.1.68, and MariaDB 5.5.30</p>
<p>Of course this isn&#8217;t the most newsworthy story, but having maintained this &#8220;list&#8221; the past couple/few years, I was happy to see the change, and at least wanted to mention it.</p>
<p>There won&#8217;t be a need for me to further update the page, but it is up-to-date now, so if you happen to need to know what version of InnoDB Plugin an older version of MySQL or MariaDB is using, then <a href='http://www.chriscalender.com/?page_id=628'>this page</a> will still be there for you (it&#8217;s also in the right-hand column of my site under &#8220;Pages&#8221; titled &#8220;<a href='http://www.chriscalender.com/?page_id=628'>InnoDB Plugin Versions</a>&#8220;).</p>
<p>Hope this helps. <img src='http://www.chriscalender.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.chriscalender.com/?feed=rss2&#038;p=1205</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Troubleshooting MySQL Crashes related to Metadata Locking</title>
		<link>http://www.chriscalender.com/?p=1195</link>
		<comments>http://www.chriscalender.com/?p=1195#comments</comments>
		<pubDate>Fri, 15 Mar 2013 23:17:37 +0000</pubDate>
		<dc:creator>chris</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[SkySQL]]></category>
		<category><![CDATA[acquire_lock]]></category>
		<category><![CDATA[enum_mdl_type]]></category>
		<category><![CDATA[InnoDB: Failing assertion: page_get_n_recs(page) > 1]]></category>
		<category><![CDATA[int __cxa_pure_virtual(): Assertion `! "Aborted: pure virtual method called."' failed]]></category>
		<category><![CDATA[mdl.cc]]></category>
		<category><![CDATA[mdl.h]]></category>
		<category><![CDATA[metadata lock]]></category>
		<category><![CDATA[metadata lock crash]]></category>
		<category><![CDATA[mysql crash]]></category>
		<category><![CDATA[MySQL troubleshooting]]></category>
		<category><![CDATA[out of memory]]></category>
		<category><![CDATA[try_acquire_lock_impl]]></category>

		<guid isPermaLink="false">http://www.chriscalender.com/?p=1195</guid>
		<description><![CDATA[Troubleshooting MySQL Crashes related to Metadata Locking]]></description>
			<content:encoded><![CDATA[<p>I just wrote an article about <a href='http://www.chriscalender.com/?p=1189'>&#8220;Troubleshooting &#8216;Waiting for table metadata lock&#8217; Errors for both MyISAM and InnoDB Tables&#8221;</a> and then ran into a new, different metadata locking issue right after I posted it, and so I thought I&#8217;d share that too, just in case anyone ever encounters a similar situation.</p>
<p>In this case, mysqld kept crashing on restart, reporting &#8220;out of memory&#8221; errors:</p>
<pre>/opt/app/mysql/product/mysql/bin//mysqld: Out of memory (Needed 840 bytes)
stack_bottom = 7fb4ebaeae58 thread_stack 0x40000
mysqld: /mysql/mysys/my_new.cc:52: int __cxa_pure_virtual():
  Assertion `! "Aborted: pure virtual method called."' failed.
mysqld: /mysql/mysys/my_new.cc:52: int __cxa_pure_virtual():
  Assertion `! "Aborted: pure virtual method called."' failed.
Fatal signal 6 while backtracing</pre>
<p>There is a <a href='http://bugs.mysql.com/bug.php?id=61104' target='_blank'>recent bug</a> fixed (in 5.5.29) that mentions the same assert above, but that is not the same problem here, as that bug always reports &#8220;InnoDB: Failing assertion: page_get_n_recs(page) > 1&#8243;.</p>
<p>Looking further into these repeated crashes, I noticed the following some of the stack traces always showed this:</p>
<pre>stack_bottom = 7f2cd227ce58 thread_stack 0x40000
/opt/app/mysql/product/mysql/bin//mysqld(my_print_stacktrace+0x35)[0x79e2d5]
/opt/app/mysql/product/mysql/bin//mysqld(handle_fatal_signal+0x403)[0x66e233]
/lib64/libpthread.so.0(+0xf7c0)[0x7f46041577c0]
/../mysqld(_ZN10MDL_ticket6createEP11MDL_context13enum_mdl_type+0x26)[0x61a3e6]
/../mysqld(_ZN11MDL_context21try_acquire_lock_implEP11MDL_requestPP10MDL_ticket+0xa2)[0x61c4c2]
/../mysqld(_ZN11MDL_context12acquire_lockEP11MDL_requestm+0x63)[0x61cb53]
/../mysqld[0x539d76]
/../mysqld(_Z10open_tableP3THDP10TABLE_LISTP11st_mem_rootP18Open_table_context+0x1b1)[0x541591]
/../mysqld(_Z11open_tablesP3THDPP10TABLE_LISTPjjP19Prelocking_strategy+0x42b)[0x542d2b]
/../mysqld(_Z30open_normal_and_derived_tablesP3THDP10TABLE_LISTj+0x48)[0x543678]
/../mysqld(_ZN18Prepared_statement7prepareEPKcj+0xc5e)[0x58a99e]
/../mysqld(_Z19mysqld_stmt_prepareP3THDPKcj+0xae)[0x58bbee]
/../mysqld(_Z16dispatch_command19enum_server_commandP3THDPcj+0xc21)[0x57c4e1]
/../mysqld(_Z24do_handle_one_connectionP3THD+0x167)[0x613447]
/../mysqld(handle_one_connection+0x54)[0x6134b4]
/../mysqld(pfs_spawn_thread+0x5b)[0x7f6abb]
/lib64/libpthread.so.0(+0x77b6)[0x7f460414f7b6]
/lib64/libc.so.6(clone+0x6d)[0x7f46033e7c5d]</pre>
<p>At first glance, it&#8217;s kind of hard to read.  However, if you focus in, you can extract some useful information.</p>
<p>Looking just before the crash (handle_fatal_signal), we see these 3 lines:</p>
<pre>/../mysqld(_ZN10MDL_ticket6createEP11MDL_context13enum_mdl_type+0x26)[0x61a3e6]
/../mysqld(_ZN11MDL_context21try_acquire_lock_implEP11MDL_requestPP10MDL_ticket+0xa2)[0x61c4c2]
/../mysqld(_ZN11MDL_context12acquire_lockEP11MDL_requestm+0x63)[0x61cb53]</pre>
<p>The keys parts of that, in reverse order are:</p>
<pre>acquire_lock
try_acquire_lock_impl
enum_mdl_type</pre>
<p>These 2 functions and variable, respectively, are only found in mdl.cc (and mdl.h) &#8211; the metadata lock files.</p>
<p>And after examining the MySQL source code, this stack trace tells us that there is an issue with the metadata locks.  Specifically, it is trying to acquire a metadata lock (try_acquire_lock_impl), but it is failing (enum_mdl_type is set when try_acquire_lock_impl() fails, an assert is thrown, and mysqld crashes).</p>
<p>I&#8217;ve searched the bugs database for anything similar to this, but didn&#8217;t find any existing ones specific to try_acquire_lock_impl.  That&#8217;s not to say there isn&#8217;t some yet-to-be-detected-bug here, but in this case, the machine was testing a custom application, so I strongly suspected the custom app causing the contention, which was the case.</p>
<p>So if you do happen to encounter this crash, then hopefully this will help you track down the problem.</p>
<p>Hope this helps, and happy troubleshooting. <img src='http://www.chriscalender.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.chriscalender.com/?feed=rss2&#038;p=1195</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Troubleshooting &#8220;Waiting for table metadata lock&#8221; Errors for both MyISAM and InnoDB Tables</title>
		<link>http://www.chriscalender.com/?p=1189</link>
		<comments>http://www.chriscalender.com/?p=1189#comments</comments>
		<pubDate>Thu, 14 Mar 2013 19:27:00 +0000</pubDate>
		<dc:creator>chris</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[SkySQL]]></category>
		<category><![CDATA[innodb locking]]></category>
		<category><![CDATA[innodb locks]]></category>
		<category><![CDATA[lock_wait_timeout]]></category>
		<category><![CDATA[metadata lock]]></category>
		<category><![CDATA[myisam locking]]></category>
		<category><![CDATA[myisam locks]]></category>
		<category><![CDATA[mysql hang]]></category>
		<category><![CDATA[mysql locking]]></category>
		<category><![CDATA[mysql locks]]></category>
		<category><![CDATA[Waiting for table metadata lock]]></category>

		<guid isPermaLink="false">http://www.chriscalender.com/?p=1189</guid>
		<description><![CDATA[Troubleshooting "Waiting for table metadata lock" Errors for both MyISAM and InnoDB Tables]]></description>
			<content:encoded><![CDATA[<p>With the introduction of <a href='http://dev.mysql.com/doc/refman/5.5/en/metadata-locking.html' target='_blank'>metadata locking</a> in MySQL 5.5, it is much more common to see queries stuck in the &#8220;Waiting for table metadata lock&#8221; state.<br />
<br />
If you see a query stuck in the &#8220;Waiting for table metadata lock&#8221; state, waiting for a MyISAM table, then it is because this table has been included as part of some uncommitted transaction (whether intentionally or not).<br />
<br />
In fact, it could be as simple as issuing SET AUTOCOMMIT=0 followed by a SELECT against a MyISAM table (a transaction can be started 3 ways: START TRANSACTION, BEGIN, and SET AUTOCOMMIT=0).  After that, the table will be locked to other DDL statements until the transaction is committed (or ended).<br />
<br />
This metadata lock is meant for DDL statements, and so that is what it blocks.  However, once a DDL statement is blocked and waiting, then all queries to that table (including SELECTs) are blocked.  Here is how you can easliy reproduce it:<br />
<br />
Connection #1:</p>
<pre>create table t1 (id int) engine=myisam;
set @@autocommit=0;
select * from t1;</pre>
<p>
Connection #2:</p>
<pre>alter table t1 rename to t2; <-- Hangs</pre>
<p>You can see it hanging here (as well as a subsequent SELECT from a 3rd connection):</p>
<pre>mysql> show full processlist;
+----+---+-------+---------------------------------+-----------------------------+
| Id |...| Time  | State                           | Info                        |
+----+---+-------+---------------------------------+-----------------------------+
|  1 |...|  1653 |                                 | NULL                        |
|  2 |...|     0 | NULL                            | show full processlist       |
|  3 |...| 18012 | Waiting for table metadata lock | alter table t1 rename to t2 |
|  4 |...| 17983 | Waiting for table metadata lock | select * from t1            |
+----+---+-------+---------------------------------+-----------------------------+</pre>
<p>This is the expected behavior, but can be a little tricky to diagnose if it's happening to you, and you don't see any other queries currently running in SHOW FULL PROCESSLIST (and/or SHOW ENGINE INNODB STATUS).  Furthermore, you cannot track this with any of the known lock tracking methods, such as InnoDB Lock Monitor, InnoDB Status, mysqladmin debug output, INFORMATION_SCHEMA, etc.), not to mention one generally doesn't associate transactions with MyISAM tables anyway.</p>
<p>You can also run into this same error in InnoDB, which one would not necessarily expect because of InnoDB's row-level locking.<br />
<br />
However, when you introduce triggers, then it becomes easy to reproduce a similar situation.<br />
</p>
<pre>create table t3 (id int) engine=innodb;
create table t4 (id int) engine=innodb;
delimiter |
CREATE TRIGGER t3_trigger AFTER INSERT ON t3
  FOR EACH ROW BEGIN
    INSERT INTO t4 SET id = NEW.id;
  END;
|
delimiter ;</pre>
<p>
Connection #1:</p>
<pre>begin;
insert into t3 values (1);</pre>
<p>Connection #2:</p>
<pre>drop trigger if exists t3_trigger; <-- Hangs</pre>
<p>So, if you see this with an InnoDB table, then check your SHOW ENGINE INNODB STATUS and look for prior transactions that hold locks and are still running.  Those would be your likely culprits for what is blocking the DROP TRIGGER command (in this case).<br />
<br />
Hope this helps and happy troubleshooting. <img src='http://www.chriscalender.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.chriscalender.com/?feed=rss2&#038;p=1189</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
