<?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>My Workday &#187; MySQL</title>
	<atom:link href="http://www.goworkday.com/category/mysql/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.goworkday.com</link>
	<description>Let&#039;s talk TECH</description>
	<lastBuildDate>Tue, 23 Mar 2010 03:28:59 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>MySQL 5.5 and Semisynchronous Replication Available</title>
		<link>http://www.goworkday.com/2009/12/15/mysql-5-5-and-semi-sync-replication-available/</link>
		<comments>http://www.goworkday.com/2009/12/15/mysql-5-5-and-semi-sync-replication-available/#comments</comments>
		<pubDate>Tue, 15 Dec 2009 22:04:37 +0000</pubDate>
		<dc:creator>Admin</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.goworkday.com/?p=205</guid>
		<description><![CDATA[<br/>The new 5.5 is now available with &#8220;Semisynchronous Replication&#8221;. This comes as an addition to the built-in asynchronous replication. MySQL replication is asynchronous by default. Events written to the binary logs on the Master server being retrieved by the slave server(s). Unfortunately, the Master server has no knowledge of when the slave has retrieved or [...]]]></description>
			<content:encoded><![CDATA[<br/><p>The new 5.5 is now available with &#8220;Semisynchronous Replication&#8221;.  This comes as an addition to the built-in asynchronous replication.   MySQL replication is asynchronous by default. Events written to the binary logs on the Master server being retrieved by the slave server(s). Unfortunately, the Master server has no knowledge of when the slave has retrieved or processed these events.   As a result, when Master crashes, transactions committed on Master, might have not have been committed on the slave server(s). In other words, there is no guarantee that any event will ever reach any slave.</p>
<p>In case of  &#8220;Semisynchronous Replication&#8221;, the Master server blockes the transaction commit until at least one of the slave servers acknowledges the it has received all the events for that transaction.  Obviously, this is great for consistency, however it brings up questions about replication over the WWW which isn&#8217;t an uncommon practice.  In case of hitting the timeout limit (in case of no response from any of the slave servers), the Master server reverts back to asynchronous replication.</p>
<p>From MySQL support:</p>
<blockquote><p>
 To understand what the “semi” in “semisynchronous replication” means, compare it with asynchronous and fully synchronous replication:</p>
<p>    * With asynchronous replication, the master writes events to its binary log and slaves request them when they are ready. There is no guarantee that any event will ever reach any slave.<br />
    * With fully synchronous replication, when a master commits a transaction, all slaves also will have committed the transaction before the master returns to the session that performed the transaction. The drawback of this is that there might be a lot of delay to complete a transaction.<br />
    * Semisynchronous replication falls between asynchronous and fully synchronous replication. The master waits after commit only until at least one slave has received and logged the events. It does not wait for all slaves to acknowledge receipt, and it requires only receipt, not that the events have been fully executed and committed on the slave side.
</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.goworkday.com/2009/12/15/mysql-5-5-and-semi-sync-replication-available/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Profiling MySQL Queries</title>
		<link>http://www.goworkday.com/2009/05/23/profiling-mysql-queries/</link>
		<comments>http://www.goworkday.com/2009/05/23/profiling-mysql-queries/#comments</comments>
		<pubDate>Sat, 23 May 2009 00:41:10 +0000</pubDate>
		<dc:creator>Admin</dc:creator>
				<category><![CDATA[MySQL]]></category>

		<guid isPermaLink="false">http://www.goworkday.com/?p=112</guid>
		<description><![CDATA[<br/>Profiling Queries with SHOW STATUS mysql&#62; flush status; mysql&#62; select SQL_NO_CACHE count(*) from table; - Check query plan now: mysql&#62; show status like 'Select%'; - Check engine operations: mysql&#62; show status like 'Handler%'; - Check if there was any ordering: mysql&#62; show status like 'Sort%'; - Check how many temporary tables have been created: mysql&#62; [...]]]></description>
			<content:encoded><![CDATA[<br/><p><strong>Profiling Queries with SHOW STATUS</strong><code><br />
mysql&gt; flush status;<br />
mysql&gt; select SQL_NO_CACHE count(*) from table;<br />
</code><br />
- Check query plan now:<br />
<code><br />
mysql&gt; show status like 'Select%';<br />
</code><br />
- Check engine operations:<br />
<code><br />
mysql&gt; show status like 'Handler%';<br />
</code><br />
- Check if there was any ordering:<br />
<code><br />
mysql&gt; show status like 'Sort%';<br />
</code><br />
- Check how many temporary tables have been created:<br />
<code><br />
mysql&gt; show status like 'Created%';<br />
</code></p>
<p><span id="more-112"></span></p>
<p><strong>Profiling Queries with SHOW PROFILE</strong><br />
<code><br />
mysql&gt; set profile=1;<br />
select count(*) from table;<br />
mysql&gt; show profiles\G<br />
*************************** 1. row ***************************<br />
Query_ID: 1<br />
Duration: 9.28089300<br />
Query: select count(*) from table<br />
1 row in set (0.00 sec)<br />
mysql&gt; show profile;<br />
+--------------------+----------+<br />
| Status             | Duration |<br />
+--------------------+----------+<br />
| starting           | 0.165418 |<br />
| Opening tables     | 0.000024 |<br />
| System lock        | 0.000004 |<br />
| Table lock         | 0.000008 |<br />
| init               | 0.000014 |<br />
| optimizing         | 0.000006 |<br />
| statistics         | 0.000013 |<br />
| preparing          | 0.000012 |<br />
| executing          | 0.000006 |<br />
| Sending data       | 9.115348 |<br />
| end                | 0.000015 |<br />
| end                | 0.000004 |<br />
| query end          | 0.000003 |<br />
| freeing items      | 0.000008 |<br />
| closing tables     | 0.000004 |<br />
| logging slow query | 0.000002 |<br />
| cleaning up        | 0.000004 |<br />
+--------------------+----------+</code></p>
<p>mysql&gt; show profile cpu;<br />
+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;+&#8212;&#8212;&#8212;-+&#8212;&#8212;&#8212;-+&#8212;&#8212;&#8212;&#8212;+<br />
| Status             | Duration | CPU_user | CPU_system |<br />
+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;+&#8212;&#8212;&#8212;-+&#8212;&#8212;&#8212;-+&#8212;&#8212;&#8212;&#8212;+<br />
| starting           | 0.000063 | 0.000000 |   0.000000 |<br />
| query end          | 0.000004 | 0.000000 |   0.000000 |<br />
| freeing items      | 0.000005 | 0.000000 |   0.000000 |<br />
| logging slow query | 0.000003 | 0.000000 |   0.000000 |<br />
| cleaning up        | 0.000003 | 0.000000 |   0.000000 |<br />
+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;+&#8212;&#8212;&#8212;-+&#8212;&#8212;&#8212;-+&#8212;&#8212;&#8212;&#8212;+</p>
]]></content:encoded>
			<wfw:commentRss>http://www.goworkday.com/2009/05/23/profiling-mysql-queries/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Start MySQL with New Binaries and Other Misc Things</title>
		<link>http://www.goworkday.com/2009/02/28/start-mysql-with-new-binaries/</link>
		<comments>http://www.goworkday.com/2009/02/28/start-mysql-with-new-binaries/#comments</comments>
		<pubDate>Sat, 28 Feb 2009 00:42:25 +0000</pubDate>
		<dc:creator>Admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[Upgrade MySQL]]></category>

		<guid isPermaLink="false">http://www.goworkday.com/?p=92</guid>
		<description><![CDATA[<br/>?View Code BASH1 2 ./mysqld_safe --user=mysql --basedir=/usr/local/mysql-5.0.67-linux-x86_64-icc-glibc23 --ledir=/usr/local/mysql-5.0.67-linux-x86_64-icc-glibc23/bin --mysqld=mysqld ?View Code BASH1 2 ./mysqladmin ext -u root -p -ri60 ./mysqladmin ext -u root -p -ri60 &#124; grep tmp]]></description>
			<content:encoded><![CDATA[<br/>
<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p92code3'); return false;">View Code</a> BASH</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p923"><td class="line_numbers"><pre>1
2
</pre></td><td class="code" id="p92code3"><pre class="bash" style="font-family:monospace;">.<span style="color: #000000; font-weight: bold;">/</span>mysqld_safe <span style="color: #660033;">--user</span>=mysql <span style="color: #660033;">--basedir</span>=<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>mysql-5.0.67-linux-x86_64-icc-glibc23
<span style="color: #660033;">--ledir</span>=<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>mysql-5.0.67-linux-x86_64-icc-glibc23<span style="color: #000000; font-weight: bold;">/</span>bin <span style="color: #660033;">--mysqld</span>=mysqld</pre></td></tr></table></div>


<div class="wp_codebox_msgheader"><span class="right"><sup><a href="http://www.ericbess.com/ericblog/2008/03/03/wp-codebox/#examples" target="_blank" title="WP-CodeBox HowTo?"><span style="color: #99cc00">?</span></a></sup></span><span class="left"><a href="javascript:;" onclick="javascript:showCodeTxt('p92code4'); return false;">View Code</a> BASH</span><div class="codebox_clear"></div></div><div class="wp_codebox"><table><tr id="p924"><td class="line_numbers"><pre>1
2
</pre></td><td class="code" id="p92code4"><pre class="bash" style="font-family:monospace;">.<span style="color: #000000; font-weight: bold;">/</span>mysqladmin ext <span style="color: #660033;">-u</span> root <span style="color: #660033;">-p</span> <span style="color: #660033;">-ri60</span>
.<span style="color: #000000; font-weight: bold;">/</span>mysqladmin ext <span style="color: #660033;">-u</span> root <span style="color: #660033;">-p</span> <span style="color: #660033;">-ri60</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">grep</span> tmp</pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://www.goworkday.com/2009/02/28/start-mysql-with-new-binaries/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Profiling Queries with SHOW STATUS</title>
		<link>http://www.goworkday.com/2009/02/13/profiling-queries-with-show-status/</link>
		<comments>http://www.goworkday.com/2009/02/13/profiling-queries-with-show-status/#comments</comments>
		<pubDate>Fri, 13 Feb 2009 00:24:15 +0000</pubDate>
		<dc:creator>Admin</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[performance]]></category>

		<guid isPermaLink="false">http://www.goworkday.com/?p=80</guid>
		<description><![CDATA[<br/>The combination of FLUSH STATUS and SHOW SESSSION STATUS can be used to see what happens while MySQL executes a query. First, run FLUSH STATUS to reset session status variables to zero. mysql&#62; FLUSH STATUS; mysql&#62; SELECT COUNT(*) FROM TABLE;]]></description>
			<content:encoded><![CDATA[<br/><p>The combination of FLUSH STATUS and SHOW SESSSION STATUS can be used to see what happens while MySQL executes a query. First, run FLUSH STATUS to reset session status variables to zero.</p>
<p>mysql&gt; FLUSH STATUS;</p>
<p>mysql&gt; SELECT COUNT(*) FROM TABLE;</p>

<a href='http://www.goworkday.com/2009/02/13/profiling-queries-with-show-status/mysqltune1/' title='mysqltune1'><img width="150" height="150" src="http://www.goworkday.com/wp-content/uploads/2009/02/mysqltune1-150x150.jpg" class="attachment-thumbnail" alt="mysqltune1 150x150 Profiling Queries with SHOW STATUS" title="mysqltune1" /></a>
<a href='http://www.goworkday.com/2009/02/13/profiling-queries-with-show-status/mysqltune2/' title='mysqltune2'><img width="150" height="150" src="http://www.goworkday.com/wp-content/uploads/2009/02/mysqltune2-150x150.jpg" class="attachment-thumbnail" alt="mysqltune2 150x150 Profiling Queries with SHOW STATUS" title="mysqltune2" /></a>
<a href='http://www.goworkday.com/2009/02/13/profiling-queries-with-show-status/mysqltune3/' title='mysqltune3'><img width="150" height="150" src="http://www.goworkday.com/wp-content/uploads/2009/02/mysqltune3-150x150.jpg" class="attachment-thumbnail" alt="mysqltune3 150x150 Profiling Queries with SHOW STATUS" title="mysqltune3" /></a>
<a href='http://www.goworkday.com/2009/02/13/profiling-queries-with-show-status/mysqltune4/' title='mysqltune4'><img width="150" height="150" src="http://www.goworkday.com/wp-content/uploads/2009/02/mysqltune4-150x150.jpg" class="attachment-thumbnail" alt="mysqltune4 150x150 Profiling Queries with SHOW STATUS" title="mysqltune4" /></a>
<a href='http://www.goworkday.com/2009/02/13/profiling-queries-with-show-status/mysqltune5/' title='mysqltune5'><img width="150" height="150" src="http://www.goworkday.com/wp-content/uploads/2009/02/mysqltune5-150x150.jpg" class="attachment-thumbnail" alt="mysqltune5 150x150 Profiling Queries with SHOW STATUS" title="mysqltune5" /></a>

]]></content:encoded>
			<wfw:commentRss>http://www.goworkday.com/2009/02/13/profiling-queries-with-show-status/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MySQL: Memory used per connection</title>
		<link>http://www.goworkday.com/2008/10/26/mysql-memory-used-per-connection/</link>
		<comments>http://www.goworkday.com/2008/10/26/mysql-memory-used-per-connection/#comments</comments>
		<pubDate>Sun, 26 Oct 2008 05:35:06 +0000</pubDate>
		<dc:creator>Admin</dc:creator>
				<category><![CDATA[MySQL]]></category>

		<guid isPermaLink="false">http://www.goworkday.com/?p=47</guid>
		<description><![CDATA[<br/>It is possible that mysqld could use up to key_buffer_size + (read_buffer_size + sort_buffer_size)*max_connections .]]></description>
			<content:encoded><![CDATA[<br/><p>It is possible that mysqld could use up to<br />
<code>key_buffer_size + (read_buffer_size + sort_buffer_size)*max_connections </code>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.goworkday.com/2008/10/26/mysql-memory-used-per-connection/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Recovering or Changing Your MySQL Root Password</title>
		<link>http://www.goworkday.com/2008/06/08/7/</link>
		<comments>http://www.goworkday.com/2008/06/08/7/#comments</comments>
		<pubDate>Sun, 08 Jun 2008 03:24:08 +0000</pubDate>
		<dc:creator>Admin</dc:creator>
				<category><![CDATA[MySQL]]></category>

		<guid isPermaLink="false">http://www.goworkday.com/?p=7</guid>
		<description><![CDATA[<br/>There are times when you may have to recover the MySQL root password because it was either forgotten or misplaced. The steps you need are: 1. Stop MySQL [root@idoumo tmp]# service mysqld stop Stopping MySQL: [ OK ] 2. Start MySQL in Safe mode with the safe_mysqld command and tell it not to read the [...]]]></description>
			<content:encoded><![CDATA[<br/><p>There are times when you may have to recover the MySQL root password because it was either forgotten or misplaced. The steps you need are:</p>
<p><strong>1. Stop MySQL</strong><br />
[root@idoumo tmp]# service mysqld stop<br />
Stopping MySQL: [ OK ]</p>
<p><strong>2. Start MySQL in Safe mode with the safe_mysqld command and tell it not to read the grant tables with all the MySQL database passwords.</strong></p>
<p>[root@idoumo tmp]# safe_mysqld &#8211;skip-grant-tables &amp;<br />
[root@idoumo tmp]# Starting mysqld daemon with databases from /var/lib/mysql</p>
<p><strong>3. Use the mysqladmin command to reset the root password. In this case, you are setting it to ack33nsaltf1sh.</strong></p>
<p>[root@idoumo tmp]# mysqladmin -u root flush-privileges password &#8220;ack33nsaltf1sh&#8221;</p>
<p><strong>4. Restart MySQL normally.</strong><br />
[root@idoumo tmp]# service mysqld restart<br />
Stopping MySQL: 040517 09:39:38 mysqld ended [ OK ]<br />
Starting MySQL: [ OK ]<br />
[1]+ Done safe_mysqld &#8211;skip-grant-tables</p>
<p>The MySQL root user will now be able to manage MySQL using this new password.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.goworkday.com/2008/06/08/7/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
