<?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: MySQL ALTER table Progress Bar?</title>
	<atom:link href="http://www.rustyrazorblade.com/2008/05/mysql-alter-table-progress-bar/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.rustyrazorblade.com/2008/05/mysql-alter-table-progress-bar/</link>
	<description>Tech Thoughts, Mostly on LAMP - by Jon Haddad</description>
	<lastBuildDate>Thu, 22 Jul 2010 09:10:54 -0700</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Alexey</title>
		<link>http://www.rustyrazorblade.com/2008/05/mysql-alter-table-progress-bar/comment-page-1/#comment-20539</link>
		<dc:creator>Alexey</dc:creator>
		<pubDate>Fri, 16 May 2008 14:24:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.rustyrazorblade.com/?p=128#comment-20539</guid>
		<description>Instead of making &#039;alter table&#039; query you can create new one with all changes you want to do and type:

mysqldump all-usual-arguments &#124; pv &#124; mysql

pv is very useful tool to monitor pipes (http://www.ivarch.com/programs/pv.shtml)</description>
		<content:encoded><![CDATA[<p>Instead of making &#8216;alter table&#8217; query you can create new one with all changes you want to do and type:</p>
<p>mysqldump all-usual-arguments | pv | mysql</p>
<p>pv is very useful tool to monitor pipes (<a href="http://www.ivarch.com/programs/pv.shtml)" rel="nofollow">http://www.ivarch.com/programs/pv.shtml)</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kevin Burton</title>
		<link>http://www.rustyrazorblade.com/2008/05/mysql-alter-table-progress-bar/comment-page-1/#comment-20534</link>
		<dc:creator>Kevin Burton</dc:creator>
		<pubDate>Fri, 16 May 2008 07:47:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.rustyrazorblade.com/?p=128#comment-20534</guid>
		<description>yup.... Jeremy&#039;s patch is more than a year old.  MySQL has been sitting on their collective asses and not accepting external patches.

So much for the open source process....</description>
		<content:encoded><![CDATA[<p>yup&#8230;. Jeremy&#8217;s patch is more than a year old.  MySQL has been sitting on their collective asses and not accepting external patches.</p>
<p>So much for the open source process&#8230;.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bart van Bragt</title>
		<link>http://www.rustyrazorblade.com/2008/05/mysql-alter-table-progress-bar/comment-page-1/#comment-20532</link>
		<dc:creator>Bart van Bragt</dc:creator>
		<pubDate>Fri, 16 May 2008 06:08:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.rustyrazorblade.com/?p=128#comment-20532</guid>
		<description>Instead of &#039;while true ... etc&#039; you can also do:

watch ls -lh /path/to/table*

For more accurate info check out:

http://www.stillhq.com/mysql/000011.html
and
http://jcole.us/blog/archives/2007/02/08/progress-in-mysql-process-list/

Jeremy&#039;s solution looks really nice :) Would rock if that could be incorporated into MySQL. Would be even nicer if this could be done for other (non-ALTER) queries, one can dream, right? :D</description>
		<content:encoded><![CDATA[<p>Instead of &#8216;while true &#8230; etc&#8217; you can also do:</p>
<p>watch ls -lh /path/to/table*</p>
<p>For more accurate info check out:</p>
<p><a href="http://www.stillhq.com/mysql/000011.html" rel="nofollow">http://www.stillhq.com/mysql/000011.html</a><br />
and<br />
<a href="http://jcole.us/blog/archives/2007/02/08/progress-in-mysql-process-list/" rel="nofollow">http://jcole.us/blog/archives/2007/02/08/progress-in-mysql-process-list/</a></p>
<p>Jeremy&#8217;s solution looks really nice <img src='http://www.rustyrazorblade.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  Would rock if that could be incorporated into MySQL. Would be even nicer if this could be done for other (non-ALTER) queries, one can dream, right? <img src='http://www.rustyrazorblade.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Artem Russakovskii</title>
		<link>http://www.rustyrazorblade.com/2008/05/mysql-alter-table-progress-bar/comment-page-1/#comment-20531</link>
		<dc:creator>Artem Russakovskii</dc:creator>
		<pubDate>Fri, 16 May 2008 06:04:39 +0000</pubDate>
		<guid isPermaLink="false">http://www.rustyrazorblade.com/?p=128#comment-20531</guid>
		<description>Re: Frank. Or you can try a less hacky and more proper way :P

&#039;watch -d -n 60 ls -lh /path/to/table.ibd&#039;

Reference: http://beerpla.net/2007/08/04/watch-a-useful-linux-command-you-may-have-never-heard-of/

P.S. Online alter table is planned for 2009, as far as I remember from the conference. That will be a godsend.</description>
		<content:encoded><![CDATA[<p>Re: Frank. Or you can try a less hacky and more proper way <img src='http://www.rustyrazorblade.com/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> </p>
<p>&#8216;watch -d -n 60 ls -lh /path/to/table.ibd&#8217;</p>
<p>Reference: <a href="http://beerpla.net/2007/08/04/watch-a-useful-linux-command-you-may-have-never-heard-of/" rel="nofollow">http://beerpla.net/2007/08/04/watch-a-useful-linux-command-you-may-have-never-heard-of/</a></p>
<p>P.S. Online alter table is planned for 2009, as far as I remember from the conference. That will be a godsend.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Frank</title>
		<link>http://www.rustyrazorblade.com/2008/05/mysql-alter-table-progress-bar/comment-page-1/#comment-20529</link>
		<dc:creator>Frank</dc:creator>
		<pubDate>Fri, 16 May 2008 05:25:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.rustyrazorblade.com/?p=128#comment-20529</guid>
		<description>Welcome to the club :)

For now, try something like (if innodb_file_per_table is enabled):

while true; do ls -lh /path/to/table.ibd; sleep 60; done</description>
		<content:encoded><![CDATA[<p>Welcome to the club <img src='http://www.rustyrazorblade.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>For now, try something like (if innodb_file_per_table is enabled):</p>
<p>while true; do ls -lh /path/to/table.ibd; sleep 60; done</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: nathan</title>
		<link>http://www.rustyrazorblade.com/2008/05/mysql-alter-table-progress-bar/comment-page-1/#comment-20528</link>
		<dc:creator>nathan</dc:creator>
		<pubDate>Fri, 16 May 2008 05:25:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.rustyrazorblade.com/?p=128#comment-20528</guid>
		<description>If you are using InnoDB, and innodb_file_per_table, the alter creates a temp table, and then drops the original table and renames the temp table.  While the alter is running, you can compare the size of the temp table&#039;s file (in your data directory) with the size of the original table&#039;s file, to get a rough idea of the progress.

It&#039;s only a rough gauge of progress because fragmentation, etc. will make the original table&#039;s file bigger than the temp table will be.   The temp table file will probably not grow to the same size as the original table&#039;s file, before it finishes.</description>
		<content:encoded><![CDATA[<p>If you are using InnoDB, and innodb_file_per_table, the alter creates a temp table, and then drops the original table and renames the temp table.  While the alter is running, you can compare the size of the temp table&#8217;s file (in your data directory) with the size of the original table&#8217;s file, to get a rough idea of the progress.</p>
<p>It&#8217;s only a rough gauge of progress because fragmentation, etc. will make the original table&#8217;s file bigger than the temp table will be.   The temp table file will probably not grow to the same size as the original table&#8217;s file, before it finishes.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
