<?xml version="1.0" encoding="UTF-8"?><rss
version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
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/"
> <channel><title>Comments on: Tips to Speed Up and Manage MySQL</title> <atom:link href="http://www.hurricanesoftwares.com/tips-to-speed-up-and-manage-mysql/feed/" rel="self" type="application/rss+xml" /><link>http://www.hurricanesoftwares.com/tips-to-speed-up-and-manage-mysql/</link> <description>For Developers, Designers and SEO Specialists</description> <lastBuildDate>Wed, 08 Feb 2012 07:55:00 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.2.1</generator> <item><title>By: pligg.com</title><link>http://www.hurricanesoftwares.com/tips-to-speed-up-and-manage-mysql/comment-page-1/#comment-395</link> <dc:creator>pligg.com</dc:creator> <pubDate>Sun, 31 Aug 2008 02:37:50 +0000</pubDate> <guid
isPermaLink="false">http://www.hurricanesoftwares.com/2008/02/07/tips-to-speed-up-and-manage-mysql/#comment-395</guid> <description>&lt;strong&gt;Tips to Speed Up and Manage MySQL &#124; Mind Tree...&lt;/strong&gt;Tips to Speed Up, Enhance and Manage MySQL   This article will show you few tips how you can enhance the performance of MySQL and you can fine tune...</description> <content:encoded><![CDATA[<p><strong>Tips to Speed Up and Manage MySQL | Mind Tree&#8230;</strong></p><p>Tips to Speed Up, Enhance and Manage MySQL   This article will show you few tips how you can enhance the performance of MySQL and you can fine tune&#8230;</p> ]]></content:encoded> </item> <item><title>By: Pliggs</title><link>http://www.hurricanesoftwares.com/tips-to-speed-up-and-manage-mysql/comment-page-1/#comment-1054</link> <dc:creator>Pliggs</dc:creator> <pubDate>Sat, 30 Aug 2008 06:56:35 +0000</pubDate> <guid
isPermaLink="false">http://www.hurricanesoftwares.com/2008/02/07/tips-to-speed-up-and-manage-mysql/#comment-1054</guid> <description>Good article, I&#039;m still trying to master MySQL.</description> <content:encoded><![CDATA[<p>Good article, I&#39;m still trying to master MySQL.</p> ]]></content:encoded> </item> <item><title>By: Geoserv</title><link>http://www.hurricanesoftwares.com/tips-to-speed-up-and-manage-mysql/comment-page-1/#comment-566</link> <dc:creator>Geoserv</dc:creator> <pubDate>Sat, 30 Aug 2008 02:56:35 +0000</pubDate> <guid
isPermaLink="false">http://www.hurricanesoftwares.com/2008/02/07/tips-to-speed-up-and-manage-mysql/#comment-566</guid> <description>Good article, I&#039;m still trying to master MySQL.</description> <content:encoded><![CDATA[<p>Good article, I&#39;m still trying to master MySQL.</p> ]]></content:encoded> </item> <item><title>By: Vote for this article at blogengage.com</title><link>http://www.hurricanesoftwares.com/tips-to-speed-up-and-manage-mysql/comment-page-1/#comment-394</link> <dc:creator>Vote for this article at blogengage.com</dc:creator> <pubDate>Sat, 30 Aug 2008 02:18:20 +0000</pubDate> <guid
isPermaLink="false">http://www.hurricanesoftwares.com/2008/02/07/tips-to-speed-up-and-manage-mysql/#comment-394</guid> <description>&lt;strong&gt;Tips to Speed Up and Manage MySQL...&lt;/strong&gt;This article will show you few tips how you can enhance the performance of MySQL and you can fine tune MySQL using simple queries....</description> <content:encoded><![CDATA[<p><strong>Tips to Speed Up and Manage MySQL&#8230;</strong></p><p>This article will show you few tips how you can enhance the performance of MySQL and you can fine tune MySQL using simple queries&#8230;.</p> ]]></content:encoded> </item> <item><title>By: Tushar</title><link>http://www.hurricanesoftwares.com/tips-to-speed-up-and-manage-mysql/comment-page-1/#comment-154</link> <dc:creator>Tushar</dc:creator> <pubDate>Thu, 07 Feb 2008 11:56:58 +0000</pubDate> <guid
isPermaLink="false">http://www.hurricanesoftwares.com/2008/02/07/tips-to-speed-up-and-manage-mysql/#comment-154</guid> <description>Hey i have downloaded MySQL Reference Manual. In case anyone is interested you can download it from here&lt;a href=&quot;http://www.hurricanesoftwares.com/php_uploads/MySQL_Reference_Manual.pdf&quot; rel=&quot;nofollow&quot;&gt;MySQL Reference Manual&lt;/a&gt;Or from &lt;a href=&quot;http://dev.mysql.com/doc/&quot; rel=&quot;nofollow&quot;&gt;MySQL.com&lt;/a&gt;</description> <content:encoded><![CDATA[<p>Hey i have downloaded MySQL Reference Manual. In case anyone is interested you can download it from here</p><p><a
href="http://www.hurricanesoftwares.com/php_uploads/MySQL_Reference_Manual.pdf" rel="nofollow">MySQL Reference Manual</a></p><p>Or from <a
href="http://dev.mysql.com/doc/" rel="nofollow">MySQL.com</a></p> ]]></content:encoded> </item> <item><title>By: Tushar</title><link>http://www.hurricanesoftwares.com/tips-to-speed-up-and-manage-mysql/comment-page-1/#comment-153</link> <dc:creator>Tushar</dc:creator> <pubDate>Thu, 07 Feb 2008 11:29:41 +0000</pubDate> <guid
isPermaLink="false">http://www.hurricanesoftwares.com/2008/02/07/tips-to-speed-up-and-manage-mysql/#comment-153</guid> <description>I hope this will help :)</description> <content:encoded><![CDATA[<p>I hope this will help <img
src='http://www.hurricanesoftwares.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p> ]]></content:encoded> </item> <item><title>By: Tushar</title><link>http://www.hurricanesoftwares.com/tips-to-speed-up-and-manage-mysql/comment-page-1/#comment-152</link> <dc:creator>Tushar</dc:creator> <pubDate>Thu, 07 Feb 2008 11:20:40 +0000</pubDate> <guid
isPermaLink="false">http://www.hurricanesoftwares.com/2008/02/07/tips-to-speed-up-and-manage-mysql/#comment-152</guid> <description>Great Comment Matt.I want to add more for those who don&#039;t understand MySQL and its features&lt;p&gt;&lt;a href=&quot;http://mysql.com&quot; target=&quot;_blank&quot; rel=&quot;nofollow&quot;&gt;MySQL&lt;/a&gt; is an open source relational database management system that&#039;s been around for quite some time now. It&#039;s mostly used for backing webbased blogs, CMSes, calendars and other online collaborative tools. It&#039;s also a vital part in the so-called LAMP system architecture, where LAMP depicts:&lt;/p&gt;&lt;p&gt;   * Linux, the base operating system kernel
* Apache, the open-source webserver software delivering applications
* MySQL, the database storage software
* PHP, the webscripting language used for writing applications&lt;/p&gt;&lt;p&gt;Because of this hugely popular software base, MySQL has gotten a lot of attention and users over the last years. There are many who would argue that MySQL is inferior to other open-source offerings like PostgreSQL and in a way they&#039;re right. MySQL is only recently becoming a viable software package for trusting your database to.&lt;/p&gt;&lt;p&gt;&lt;strong&gt;A Poor Man&#039;s Query Profiler&lt;/strong&gt;&lt;/p&gt;
&lt;em&gt;When luxury is miles away&lt;/em&gt;You might encounter a situation where the server system&#039;s performance is horrible and there&#039;s about twenty customers breathing heavily down your neck. You&#039;re wondering what happened since the server hardware has always kept up with demand and from one day to the next the performance dropped considerably.There are a lot of profiling tools available which integrate nicely into applications you write, but as a DBA you often don&#039;t have access to the source code of the programs accessing your database server. Luckily, there&#039;s a really simple way to profile queries on a basic level.No, I&#039;m not talking about the slow query log since that requires more hassle than required. The following trick can be used without restarting MySQL. Curious? Let&#039;s go then!
&lt;strong&gt;Jack of all trades: mysqladmin&lt;/strong&gt;The real trick lies in the mysqladmin tool which offers a variety of functions. By simply running this command:user@host$ mysqladminYou can see the list of available commands in the lower part of the output. The one we&#039;ll be using here is the processlist command which shows all client connections and, more importantly, what each connection is doing.Try executing the following command:user@host$ mysqladmin -uroot -p processlist
Enter password: type the root user&#039;s password and press [ENTER]
+--------+------+-----------+----+---------+------+-------+-----------------------+
&#124; Id     &#124; User &#124; Host      &#124; db &#124; Command &#124; Time &#124; State &#124; Info                  &#124;
+--------+------+-----------+----+---------+------+-------+-----------------------+
&#124; 100030 &#124; root &#124; localhost &#124;    &#124; Query   &#124; 0    &#124;       &#124; show full processlist &#124;
+--------+------+-----------+----+---------+------+-------+-----------------------+As you can see, there&#039;s not much happening on my testing server. But try this on your own system and you&#039;ll see a lot of connections and for each connection you can see the query currently being processed. If the statements appear trimmed, use the &#039;-v&#039; command line parameter to gradually receive more of the query statement.In the &#039;time&#039; column you can see how many seconds have already been used to process the client request. This is vital for this trick: using the time column we can easily spot slow queries which take longer than five seconds. The icing on the cake comes in the form of the &#039;--sleep&#039; or &#039;-i&#039; parameter.&lt;strong&gt;Piecing it all together&lt;/strong&gt;Using the &#039;--sleep&#039; or &#039;-i&#039; parameter the client connection table is displayed every few seconds. Using this technique you can easily spot the incrementing time columns and see which queries are taking long. For instance, try running the mysqladmin command like this:mysqladmin -v -uroot -p -i 1 processlistThis will print out the table each second. Try this on your overloaded server and you can easily determine which queries or query categories are taking too much time. You can see the username, database and query being executed in real time.Once you&#039;ve identified the cause of the performance hit, contact the supplier of the software doing the queries so they can add missing indices or clean up some legacy data.&lt;strong&gt;Binary Binlogs to ASCII&lt;/strong&gt;
&lt;em&gt;For those days you don&#039;t speak binary&lt;/em&gt;This tip&#039;s definitely a short one but it could save you some hassle when you&#039;re working on your master / slave replicating system under pressure. If you ever find yourself wanting to see which data-altering queries have been executed on a system you can rely on your binlogs for all your needs.In each binlog file there&#039;s a log of all INSERT, UPDATE and DELETE queries performed on the databases. If you open such a file in a text editor, it&#039;s kind of hard to make out what exactly went on, but there&#039;s a nice tool to convert those binary binlog files to plain ASCII SQL statements.It&#039;s called:mysqlbinlogBadum-ching. If you don&#039;t know this tool exists, there you go. Just run this tool and provide on of your binlog files as an argument and you&#039;ll get a full ASCII dump of all queries. For example the following command:mysqlbinlog test-bin.001 &gt; testqueries.logThis will convert the full binlog file &#039;test-bin.001&#039; to an ASCII SQL log in the file &#039;testqueries.log&#039;.</description> <content:encoded><![CDATA[<p>Great Comment Matt.</p><p>I want to add more for those who don&#8217;t understand MySQL and its features</p><p><a
href="http://mysql.com" target="_blank" rel="nofollow">MySQL</a> is an open source relational database management system that&#8217;s been around for quite some time now. It&#8217;s mostly used for backing webbased blogs, CMSes, calendars and other online collaborative tools. It&#8217;s also a vital part in the so-called LAMP system architecture, where LAMP depicts:</p><p> * Linux, the base operating system kernel<br
/> * Apache, the open-source webserver software delivering applications<br
/> * MySQL, the database storage software<br
/> * PHP, the webscripting language used for writing applications</p><p>Because of this hugely popular software base, MySQL has gotten a lot of attention and users over the last years. There are many who would argue that MySQL is inferior to other open-source offerings like PostgreSQL and in a way they&#8217;re right. MySQL is only recently becoming a viable software package for trusting your database to.</p><p><strong>A Poor Man&#8217;s Query Profiler</strong></p><p><em>When luxury is miles away</em></p><p>You might encounter a situation where the server system&#8217;s performance is horrible and there&#8217;s about twenty customers breathing heavily down your neck. You&#8217;re wondering what happened since the server hardware has always kept up with demand and from one day to the next the performance dropped considerably.</p><p>There are a lot of profiling tools available which integrate nicely into applications you write, but as a DBA you often don&#8217;t have access to the source code of the programs accessing your database server. Luckily, there&#8217;s a really simple way to profile queries on a basic level.</p><p>No, I&#8217;m not talking about the slow query log since that requires more hassle than required. The following trick can be used without restarting MySQL. Curious? Let&#8217;s go then!<br
/> <strong>Jack of all trades: mysqladmin</strong></p><p>The real trick lies in the mysqladmin tool which offers a variety of functions. By simply running this command:</p><p>user@host$ mysqladmin</p><p>You can see the list of available commands in the lower part of the output. The one we&#8217;ll be using here is the processlist command which shows all client connections and, more importantly, what each connection is doing.</p><p>Try executing the following command:</p><p>user@host$ mysqladmin -uroot -p processlist<br
/> Enter password: type the root user&#8217;s password and press [ENTER]<br
/> +&#8212;&#8212;&#8211;+&#8212;&#8212;+&#8212;&#8212;&#8212;&#8211;+&#8212;-+&#8212;&#8212;&#8212;+&#8212;&#8212;+&#8212;&#8212;-+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;+<br
/> | Id     | User | Host      | db | Command | Time | State | Info                  |<br
/> +&#8212;&#8212;&#8211;+&#8212;&#8212;+&#8212;&#8212;&#8212;&#8211;+&#8212;-+&#8212;&#8212;&#8212;+&#8212;&#8212;+&#8212;&#8212;-+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;+<br
/> | 100030 | root | localhost |    | Query   | 0    |       | show full processlist |<br
/> +&#8212;&#8212;&#8211;+&#8212;&#8212;+&#8212;&#8212;&#8212;&#8211;+&#8212;-+&#8212;&#8212;&#8212;+&#8212;&#8212;+&#8212;&#8212;-+&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;+</p><p>As you can see, there&#8217;s not much happening on my testing server. But try this on your own system and you&#8217;ll see a lot of connections and for each connection you can see the query currently being processed. If the statements appear trimmed, use the &#8216;-v&#8217; command line parameter to gradually receive more of the query statement.</p><p>In the &#8216;time&#8217; column you can see how many seconds have already been used to process the client request. This is vital for this trick: using the time column we can easily spot slow queries which take longer than five seconds. The icing on the cake comes in the form of the &#8216;&#8211;sleep&#8217; or &#8216;-i&#8217; parameter.</p><p><strong>Piecing it all together</strong></p><p>Using the &#8216;&#8211;sleep&#8217; or &#8216;-i&#8217; parameter the client connection table is displayed every few seconds. Using this technique you can easily spot the incrementing time columns and see which queries are taking long. For instance, try running the mysqladmin command like this:</p><p>mysqladmin -v -uroot -p -i 1 processlist</p><p>This will print out the table each second. Try this on your overloaded server and you can easily determine which queries or query categories are taking too much time. You can see the username, database and query being executed in real time.</p><p>Once you&#8217;ve identified the cause of the performance hit, contact the supplier of the software doing the queries so they can add missing indices or clean up some legacy data.</p><p><strong>Binary Binlogs to ASCII</strong><br
/> <em>For those days you don&#8217;t speak binary</em></p><p>This tip&#8217;s definitely a short one but it could save you some hassle when you&#8217;re working on your master / slave replicating system under pressure. If you ever find yourself wanting to see which data-altering queries have been executed on a system you can rely on your binlogs for all your needs.</p><p>In each binlog file there&#8217;s a log of all INSERT, UPDATE and DELETE queries performed on the databases. If you open such a file in a text editor, it&#8217;s kind of hard to make out what exactly went on, but there&#8217;s a nice tool to convert those binary binlog files to plain ASCII SQL statements.</p><p>It&#8217;s called:</p><p>mysqlbinlog</p><p>Badum-ching. If you don&#8217;t know this tool exists, there you go. Just run this tool and provide on of your binlog files as an argument and you&#8217;ll get a full ASCII dump of all queries. For example the following command:</p><p>mysqlbinlog test-bin.001 &gt; testqueries.log</p><p>This will convert the full binlog file &#8216;test-bin.001&#8242; to an ASCII SQL log in the file &#8216;testqueries.log&#8217;.</p> ]]></content:encoded> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced
Database Caching using disk: basic
Object Caching 409/413 objects using disk: basic

Served from: www.hurricanesoftwares.com @ 2012-02-08 23:19:10 -->
