<?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>Linux Windows System Administrator Help &#187; Table</title>
	<atom:link href="http://linuxwindowsmaster.com/tag/table/feed/" rel="self" type="application/rss+xml" />
	<link>http://linuxwindowsmaster.com</link>
	<description></description>
	<lastBuildDate>Wed, 15 Feb 2012 17:58:11 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>How do you repair a corrupt MySQL table?</title>
		<link>http://linuxwindowsmaster.com/how-do-you-repair-a-corrupt-mysql-table/</link>
		<comments>http://linuxwindowsmaster.com/how-do-you-repair-a-corrupt-mysql-table/#comments</comments>
		<pubDate>Thu, 23 Oct 2008 16:12:45 +0000</pubDate>
		<dc:creator>Alex P</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[isamchk]]></category>
		<category><![CDATA[MyISAM]]></category>
		<category><![CDATA[myisamchk]]></category>
		<category><![CDATA[repair]]></category>
		<category><![CDATA[Table]]></category>
		<category><![CDATA[tbl_name]]></category>

		<guid isPermaLink="false">http://linuxwindowsmaster.com/?p=91</guid>
		<description><![CDATA[Hello, Error: Table ‘tbl_ name’ doesn’t exist databasename_tablesname.frm can’t open If you get either of the following errors, it usually means that no table exists in the current database with the given name: Table ‘tbl_name’ doesn’t exist Can’t find file: ‘tbl_name’ (errno: 2) A ) In some cases, it may be that the table does [...]]]></description>
			<content:encoded><![CDATA[<p>Hello,</p>
<p><strong>Error: Table ‘tbl_ name’ doesn’t exist databasename_tablesname.frm can’t open</strong></p>
<p>If you get either of the following errors, it usually means that no table exists in the current database with the given name:</p>
<p><strong>Table ‘tbl_name’ doesn’t exist</strong></p>
<p><strong>Can’t find file: ‘tbl_name’ (errno: 2)</strong></p>
<p>A ) In some cases, it may be that the table does exist but that you are referring to it incorrectly:</p>
<p>Because <strong>MySQL</strong> uses directories and files to store databases and tables, database and table names are case sensitive if they are located on a file system that has case-sensitive <strong>filenames</strong>.</p>
<p>Even for file systems that are not case sensitive, such as on Windows, all references to a given table within a query must use the same letter case.</p>
<p>B ) In some cases, it may be that the table exist but same error occurs then</p>
<p>1 ) Check the <strong>permission and ownership </strong>of database i.e. it should be same below</p>
<p><strong>drwx—— 2 mysql mysql cpanelusername_dbname.</strong></p>
<p>2) If the permission are corrects but same error occurs then it seems that your database table may be corrupts then there are following way to repair the DB</p>
<p>a) Go to <strong>whm &gt;&gt;SQL Services &gt;&gt; Repair a Database &gt;&gt; select database name and click Repair Database</strong>.</p>
<p>b) Go to <strong>cpanel &gt;&gt; mysql section MySQL Account Maintenance &gt;&gt; search database then click on Repair</strong>.</p>
<p>C) You can repair it though shell when mysqld server is running</p>
<p>i) login in mysql to that particular user by using following command</p>
<p><strong>mysql&gt;mysql –u databaseusername –p databasename</strong></p>
<p>ii) select particular database</p>
<p><strong>mysql&gt; use databasename;</strong></p>
<p>iii) Check whether database table is corrupted or not if following command output shows null value then it should be corrupts otherwise it is fine</p>
<p><strong>mysql&gt;show table status like ‘table name’\G; Or</strong><br />
mysql&gt;<strong>check table tablename ;</strong></p>
<p>iv)If it is corrupts then use the following command to repair that particular database table.</p>
<p><strong>mysql&gt;repair table tablename;</strong></p>
<p>D] You can repair it though shell when mysqld server is not running</p>
<p><strong>Repairing MyISAM mySQL Tables/Databases:</strong></p>
<p>#<strong> cd /var/lib/mysql/DBNAME</strong></p>
<p># <strong>myisamchk tablename.MYI</strong></p>
<p>Repairing ISAM mySQL Tables/Databases:</p>
<p># <strong>cd /var/lib/mysql/DBNAME</strong><br />
<strong>isamchk tablename.MYI</strong><br />
<strong>where</strong></p>
<p><strong>-c –&gt; check database is corrupted or not<br />
-r –&gt; recorver<br />
-o –&gt; optimise the database</strong></p>
<p>Enjoy&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;..:D</p>
]]></content:encoded>
			<wfw:commentRss>http://linuxwindowsmaster.com/how-do-you-repair-a-corrupt-mysql-table/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

