<?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>Wired Gorilla &#187; Repair MySQL</title>
	<atom:link href="http://wiredgorilla.com.au/tag/repair-mysql/feed/" rel="self" type="application/rss+xml" />
	<link>http://wiredgorilla.com.au</link>
	<description>Server - VPS - Web Hosting Info</description>
	<lastBuildDate>Sat, 03 Apr 2010 11:25:17 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>How can I repair corrupt MySQL tables?</title>
		<link>http://wiredgorilla.com.au/2008/09/how-can-i-repair-corrupt-mysql-tables/</link>
		<comments>http://wiredgorilla.com.au/2008/09/how-can-i-repair-corrupt-mysql-tables/#comments</comments>
		<pubDate>Fri, 12 Sep 2008 09:37:36 +0000</pubDate>
		<dc:creator>wiredgorilla</dc:creator>
				<category><![CDATA[Linux Tutorials]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[cPanel Guidelines]]></category>
		<category><![CDATA[Database]]></category>
		<category><![CDATA[Repair MySQL]]></category>

		<guid isPermaLink="false"></guid>
		<description><![CDATA[How can I repair corrupt MySQL tables? Every so often, MySQL tables have a way of corrupting themselves. MySQL offers a quick and painless method of repairing those tables. Login to your server via SSH and change directories to the database that is having problems. cd /usr/local/mysql/var/[DBNAME]/ You will need to replace [DBNAME] with the [...]


Related posts:<ol><li><a href='http://wiredgorilla.com.au/2010/02/linux-server-type-restoring-mysql-simlink/' rel='bookmark' title='Permanent Link: Linux Server Type: Restoring MySQL SimLink.'>Linux Server Type: Restoring MySQL SimLink.</a> <small>If you&#8217;re unable to restart mysqld and troubleshooting the cause:...</small></li>
</ol>]]></description>
			<content:encoded><![CDATA[<div class="divider_dash_grey_bt">How can I repair corrupt MySQL tables?</div>
<p>Every so often, MySQL<br />
tables have a way of corrupting themselves. MySQL offers a quick and<br />
painless method of repairing those tables.</p>
<p><span id="more-141"></span></p>
<p>Login to your server via SSH and change directories to the database that is having problems.</p>
<pre style="border-right: 2px solid #dddddd; border-bottom: 2px solid #dddddd; padding: 10px; background-color: #ffffcc">cd /usr/local/mysql/var/[DBNAME]/</pre>
<p>You will need to replace [DBNAME] with the actual name of your database.</p>
<p>Stop the MySQL server:</p>
<pre style="border-right: 2px solid #dddddd; border-bottom: 2px solid #dddddd; padding: 10px; background-color: #ffffcc">/etc/rc.d/init.d/mysql stop</pre>
<p><span class="highlite">NOTE:</span> Accounts created before July 7th, 2003 will want to use:</p>
<pre style="border-right: 2px solid #dddddd; border-bottom: 2px solid #dddddd; padding: 10px; background-color: #ffffcc">/etc/rc.d/init.d/mysqld stop</pre>
<p>To check the tables:</p>
<pre style="border-right: 2px solid #dddddd; border-bottom: 2px solid #dddddd; padding: 10px; background-color: #ffffcc">myisamchk *.MYI</pre>
<p>To repair tables:</p>
<pre style="border-right: 2px solid #dddddd; border-bottom: 2px solid #dddddd; padding: 10px; background-color: #ffffcc">myisamchk -r *.MYI</pre>
<p>Restart MySQL:</p>
<pre style="border-right: 2px solid #dddddd; border-bottom: 2px solid #dddddd; padding: 10px; background-color: #ffffcc">/etc/rc.d/init.d/mysql start</pre>
<p><span class="highlite">NOTE:</span> Accounts created before July 7th, 2003 will want to use:</p>
<pre style="border-right: 2px solid #dddddd; border-bottom: 2px solid #dddddd; padding: 10px; background-color: #ffffcc">/etc/rc.d/init.d/mysqld start</pre>
<p>Alternatively, if you do not want to shut down MySQL, you can use mysqlcheck.</p>
<pre style="border-right: 2px solid #dddddd; border-bottom: 2px solid #dddddd; padding: 10px; background-color: #ffffcc">mysqlcheck [DBNAME]</pre>
<p>To repair the database tables:</p>
<pre style="border-right: 2px solid #dddddd; border-bottom: 2px solid #dddddd; padding: 10px; background-color: #ffffcc">mysqlcheck -r [DBNAME]</pre>
<p>You will need to replace [DBNAME] with the actual name of your database.</p>
<p>You can find additional documentation here:</p>
<p><a class="reglink" href="http://dev.mysql.com/doc/mysql/en/Table_maintenance.html">http://dev.mysql.com/doc/mysql/en/Table_maintenance.html</a></p>
<p><a class="reglink" href="http://dev.mysql.com/doc/mysql/en/Using_mysqlcheck.html">http://dev.mysql.com/doc/mysql/en/Using_mysqlcheck.html</a></p>


<p>Related posts:<ol><li><a href='http://wiredgorilla.com.au/2010/02/linux-server-type-restoring-mysql-simlink/' rel='bookmark' title='Permanent Link: Linux Server Type: Restoring MySQL SimLink.'>Linux Server Type: Restoring MySQL SimLink.</a> <small>If you&#8217;re unable to restart mysqld and troubleshooting the cause:...</small></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://wiredgorilla.com.au/2008/09/how-can-i-repair-corrupt-mysql-tables/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
