<?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; MySQL</title>
	<atom:link href="http://linuxwindowsmaster.com/category/mysql/feed/" rel="self" type="application/rss+xml" />
	<link>http://linuxwindowsmaster.com</link>
	<description></description>
	<lastBuildDate>Thu, 20 May 2010 20:07:56 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>What is the advantge and disadvantage of mysql_connect() and mysql_pconnect() ?</title>
		<link>http://linuxwindowsmaster.com/what-is-the-advantge-and-disadvantage-of-mysql_connect-and-mysql_pconnect/</link>
		<comments>http://linuxwindowsmaster.com/what-is-the-advantge-and-disadvantage-of-mysql_connect-and-mysql_pconnect/#comments</comments>
		<pubDate>Thu, 16 Apr 2009 00:41:19 +0000</pubDate>
		<dc:creator>Alex P</dc:creator>
				<category><![CDATA[Dedicated Server]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[mysql_connect]]></category>
		<category><![CDATA[mysql_pconnect]]></category>

		<guid isPermaLink="false">http://linuxwindowsmaster.com/?p=279</guid>
		<description><![CDATA[
mysql_pconnect() will maintain a persistent connection to the database. Whenever your script calls the connect to database function, it first searches already existing connections to the database and if exists it will use the same connection to connect to the database, if not it will open a new connection to the database. ie. Connection is [...]]]></description>
			<content:encoded><![CDATA[<p><!--[endif]--></p>
<p class="MsoNormal" style="text-align: justify;"><strong><span style="font-size: 11pt; font-family: Georgia;">mysql_pconnect() </span></strong><span style="font-size: 11pt; font-family: Georgia;">will maintain a persistent connection to the database. Whenever your script calls the connect to database function, it first searches already existing connections to the database and if exists it will use the same connection to connect to the database, if not it will open a new connection to the database. ie. Connection is Persistent</span></p>
<p class="MsoNormal" style="text-align: justify;"><span style="font-size: 11pt; font-family: Georgia;">where as <strong>mysql_connect()</strong> function will establish a new connection whenever a connection to database needed, and after executing the script, this function disconnects the connection. ie. connection is not a persistent one.</span></p>
<p class="MsoNormal" style="text-align: justify;"><strong><span style="font-size: 11pt; font-family: Georgia;">mysql_pconnect()</span></strong><span style="font-size: 11pt; font-family: Georgia;"> function is used where your site has a Heavy Traffic and where as <strong>mysql_connect()</strong> function is used when there is moderate/less traffic to your site.</span></p>
<p class="MsoNormal"><span style="font-size: 11pt; font-family: Georgia;"> </span></p>
<p class="MsoNormal"><span style="font-size: 11pt; font-family: Georgia;">Regard’s</span></p>
<p class="MsoNormal"><span style="font-size: 11pt; font-family: Georgia;">Alex P</span></p>
<p class="MsoNormal"><span style="font-size: 11pt; font-family: Georgia;">System Administrator.</span></p>
]]></content:encoded>
			<wfw:commentRss>http://linuxwindowsmaster.com/what-is-the-advantge-and-disadvantage-of-mysql_connect-and-mysql_pconnect/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Mysql error : Can’t create new tempfile: ‘*.TMD file</title>
		<link>http://linuxwindowsmaster.com/mysql-error-can%e2%80%99t-create-new-tempfile-%e2%80%98tmd-file/</link>
		<comments>http://linuxwindowsmaster.com/mysql-error-can%e2%80%99t-create-new-tempfile-%e2%80%98tmd-file/#comments</comments>
		<pubDate>Mon, 06 Apr 2009 15:10:12 +0000</pubDate>
		<dc:creator>Alex P</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[*.TMD]]></category>
		<category><![CDATA[tempfile]]></category>

		<guid isPermaLink="false">http://linuxwindowsmaster.com/?p=187</guid>
		<description><![CDATA[
Hello,
If you are getting Can’t create new tempfile: ‘tablesname.TMD file error while repairing corrupted database tables please try use following command to fix it
Solution.
# myisamchk -r -f  tables.MYI
Regard’s
Stacy.
]]></description>
			<content:encoded><![CDATA[<div class="entry font-resize">
<p>Hello,</p>
<p>If you are getting <strong>Can’t create new tempfile: ‘tablesname.TMD file</strong> error while repairing corrupted database tables please try use following command to fix it</p>
<p>Solution.</p>
<pre><strong># myisamchk -r -f  tables.MYI</strong></pre>
<p>Regard’s</p>
<p>Stacy.</p></div>
]]></content:encoded>
			<wfw:commentRss>http://linuxwindowsmaster.com/mysql-error-can%e2%80%99t-create-new-tempfile-%e2%80%98tmd-file/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>How do you repair a corrupt MySQL table?</title>
		<link>http://linuxwindowsmaster.com/how-do-you-repair-a-corrupt-mysql-table-2/</link>
		<comments>http://linuxwindowsmaster.com/how-do-you-repair-a-corrupt-mysql-table-2/#comments</comments>
		<pubDate>Sun, 22 Mar 2009 16:41:28 +0000</pubDate>
		<dc:creator>AlexP</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[.frm]]></category>
		<category><![CDATA[Can’t find file: ‘tbl_name’ (errno: 2)]]></category>
		<category><![CDATA[isamchk]]></category>
		<category><![CDATA[myisamchk]]></category>
		<category><![CDATA[repair]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[tbl_ name]]></category>

		<guid isPermaLink="false">http://linuxwindowsmaster.com/?p=139</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 exist but that you are [...]]]></description>
			<content:encoded><![CDATA[<div class="entry font-resize">
<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>Table ‘tbl_name’ doesn’t exist</p>
<p>Can’t find file: ‘tbl_name’ (errno: 2)</p>
<p><strong>A ) In some cases, it may be that the table does exist but that you are referring to it incorrectly:</strong></p>
<p>Because MySQL 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 filenames.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><strong>B ) In some cases, it may be that the table exist but same error occurs then</strong></p>
<p><strong>1 ) </strong>Check the permission and ownership of database i.e. it should be same below</p>
<p>drwx—— 2 mysql mysql cpanelusername_dbname.</p>
<p><strong>2) </strong>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><strong>a)</strong> Go to whm &gt;&gt;SQL Services &gt;&gt; Repair a Database &gt;&gt; select database name and click Repair Database.</p>
<p><strong>b)</strong> Go to cpanel &gt;&gt; mysql section MySQL Account Maintenance &gt;&gt; search database then click on Repair.</p>
<p><strong>C) You can repair it though shell when mysqld server is running</strong></p>
<p><strong>i)</strong> login in mysql to that particular user by using following command</p>
<pre><strong>mysql&gt;mysql –u databaseusername –p databasename</strong></pre>
<p><strong>ii)</strong> select particular database</p>
<pre><strong>mysql&gt; use databasename;</strong></pre>
<p><strong>iii)</strong> 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>
<pre><strong>mysql&gt;show table status like ‘table name’\G; Or
mysql&gt;check table tablename ;</strong></pre>
<p><strong>iv)</strong>If it is corrupts then use the following command to repair that particular database table.</p>
<pre><strong>mysql&gt;repair table tablename;</strong></pre>
<p><strong>D] You can repair it though shell when mysqld server is not running</strong></p>
<p>Repairing MyISAM mySQL Tables/Databases:</p>
<pre><strong># cd /var/lib/mysql/DBNAME</strong>

<strong># myisamchk tablename.MYI</strong></pre>
<p>Repairing ISAM mySQL Tables/Databases:</p>
<pre><strong># cd /var/lib/mysql/DBNAME
isamchk tablename.MYI</strong></pre>
<p><strong>where</strong></p>
<p><strong>-c</strong> –&gt; check database is corrupted or not<br />
<strong>-r</strong> –&gt; recorver<br />
<strong>-o </strong>–&gt; optimise the database</p>
<p>Regards</p>
<p>Alex P</p></div>
]]></content:encoded>
			<wfw:commentRss>http://linuxwindowsmaster.com/how-do-you-repair-a-corrupt-mysql-table-2/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Enable MySQL Query Log File</title>
		<link>http://linuxwindowsmaster.com/enable-mysql-query-log-file/</link>
		<comments>http://linuxwindowsmaster.com/enable-mysql-query-log-file/#comments</comments>
		<pubDate>Sun, 26 Oct 2008 18:35:57 +0000</pubDate>
		<dc:creator>Alex P</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[log-slow-queries]]></category>
		<category><![CDATA[long_query_time]]></category>
		<category><![CDATA[mysql enable query log]]></category>
		<category><![CDATA[mysql query log]]></category>
		<category><![CDATA[mysqld]]></category>
		<category><![CDATA[SQL queries]]></category>

		<guid isPermaLink="false">http://linuxwindowsmaster.com/?p=95</guid>
		<description><![CDATA[MySQL has built-in functionality that allows you to log SQL queries to a file , You can enable the full SQL queries logs to a file or only slow running queries log.  It is easy for us to troubleshoot/ debug the sql statement if SQL queries log enable , The slow query log  is  used [...]]]></description>
			<content:encoded><![CDATA[<p><strong>MySQL</strong> has built-in functionality that allows you to log <strong>SQL queries</strong> to a file , You can enable the full SQL queries logs to a file or only slow running queries log.  It is easy for us to troubleshoot/ debug the <strong>sql statement</strong> if SQL queries log enable , The slow query log  is  used to find queries that take a long time to execute and are therefore candidates for optimization.</p>
<p>To enable you just need to add some lines to your<strong> my.cnf file</strong>, and restart. Add the following:</p>
<ul>
<li><strong>To enable slow Query Log only</strong></li>
</ul>
<p><strong>log-slow-queries = /var/log/mysql/mysql-slow.log<br />
long_query_time = 1</strong></p>
<p>After enabling slow query, <strong>mysqld </strong>writes a statement to the slow query log file and it consists of all <strong>SQL</strong> statements that took more than long_query_time seconds to execute. The time to acquire the initial table locks is not counted as execution time. mysqld only log after SQL statements has been executed and after all locks have been released, so log order might be different from execution order. The minimum and default values of long_query_time are 1 and 10, respectively.</p>
<ul>
<li><strong>To enable full Log Query</strong></li>
</ul>
<p><strong>log=/var/log/mysqldquery.log</strong></p>
<p>The above will log all queries to the log file.</p>
<p>Note :: Don&#8217;t forgot to restart mysql service after making changes in my.cnf file.</p>
<p>Regards</p>
]]></content:encoded>
			<wfw:commentRss>http://linuxwindowsmaster.com/enable-mysql-query-log-file/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<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 exist but that you are [...]]]></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>
