<?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>InstaCarma Blog &#187; Mysql</title>
	<atom:link href="http://www.instacarma.com/blog/tag/mysql/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.instacarma.com/blog</link>
	<description>Information Resource for Web Hosting Technical Support and Server Management</description>
	<lastBuildDate>Tue, 24 May 2011 10:01:02 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2</generator>
		<item>
		<title>MySQL High Availability Storage Options</title>
		<link>http://www.instacarma.com/blog/technical/mysql-high-availability-storage-options/</link>
		<comments>http://www.instacarma.com/blog/technical/mysql-high-availability-storage-options/#comments</comments>
		<pubDate>Wed, 17 Nov 2010 16:15:27 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Articles and tutorials]]></category>
		<category><![CDATA[Technical]]></category>
		<category><![CDATA[DRBD]]></category>
		<category><![CDATA[high availability]]></category>
		<category><![CDATA[Mysql]]></category>
		<category><![CDATA[MySQL Cluster]]></category>
		<category><![CDATA[MySQL Replication]]></category>
		<category><![CDATA[Storage]]></category>

		<guid isPermaLink="false">http://instacarma.com/blog/?p=1353</guid>
		<description><![CDATA[Filed under: DRBD, high availability, Mysql, MySQL Cluster, MySQL Replication, Storage There are various solutions available for achieving high availability and scalability of MySQL data/service. &#8216;MySQL Replication&#8217; and &#8216;MySQL Cluster&#8217; the solutions offered and supported by MySQL. Third-party solutions such as DRBD (Distributed Replicated Block Device) and Heartbeat can also be used or one could [...]]]></description>
			<content:encoded><![CDATA[<p>Filed under: <a href='http://www.instacarma.com/blog/tag/drbd/'>DRBD</a>, <a href='http://www.instacarma.com/blog/tag/high-availability/'>high availability</a>, <a href='http://www.instacarma.com/blog/tag/mysql/'>Mysql</a>, <a href='http://www.instacarma.com/blog/tag/mysql-cluster/'>MySQL Cluster</a>, <a href='http://www.instacarma.com/blog/tag/mysql-replication/'>MySQL Replication</a>, <a href='http://www.instacarma.com/blog/tag/storage/'>Storage</a></p>
<p><!-- 		@page { margin: 2cm } 		P { margin-bottom: 0.21cm } 		H2 { margin-bottom: 0.21cm } 		H2.western { font-family: "Nimbus Roman No9 L", "Times New Roman", serif } 		H2.cjk { font-family: "DejaVu Sans" } 		H2.ctl { font-family: "DejaVu Sans" } -->There are various solutions available for achieving high availability and scalability of MySQL data/service. &#8216;MySQL Replication&#8217; and &#8216;MySQL Cluster&#8217; the solutions offered and supported by MySQL. Third-party solutions such as DRBD (Distributed Replicated Block Device) and Heartbeat can also be used or one could implement a combination of these technologies.</p>
<p>The two solutions offered by MySQL are discussed here. Of these, MySQL Cluster is considered a feasible and reliable solution and is our subject of interest.</p>
<p><em><span style="text-decoration: underline;"><strong>MySQL Replication</strong></span></em><em><strong>:</strong></em><strong> </strong></p>
<p>It enables data from one MySQL server instance to be replicated to another MySQL server instance. It allows replication of data from a single master server to any number of slaves using a simple setup. However, this is an asynchronous replication solution, so the synchronization does not take place in real time, and data replication among all slaves is can not guaranteed always.</p>
<ul>
<li><strong>Advantages</strong>
<ul>
<li>This  can be implemented on any platform (which MySQL 		supports) and isn&#8217;t OS specific.</li>
<li>Replication is asynchronous and can be stopped and restarted 		at any time, and is easily manageable during network issues.</li>
<li>Data can be replicated from one master to any number of 		slaves. This is suitable for environments with heavy reads, but 		light writes, by spreading the load across multiple slaves.</li>
</ul>
</li>
<li><strong>Disadvantages</strong>
<ul>
<li>Data can only be written to the master.</li>
<li>There is no guarantee that data on master and slaves will be 		consistent at a given point in time. Due to asynchronous 		replication of data, there may be a small delay between data being 		written to the master and it being available on the slaves.</li>
</ul>
</li>
<li><strong>Recommended uses</strong>
<ul>
<li>Scale-out solutions that require a large number of reads but 		fewer writes (for example, web serving).</li>
<li>Logging/data analysis of live data. Queries can be performed 		on the slave without affecting the operation of the master.</li>
<li>Online backup (high availability &#8211; when used in combination 		with heartbeat). However, since asynchronous replication is used, 		the data may be incomplete.</li>
<li>Offline backup &#8211; Snapshot of existing data at a given point 		of time can be taken by replicating the data to a slave.</li>
</ul>
</li>
</ul>
<p><em><span style="text-decoration: underline;"><strong>MySQL Cluster</strong></span></em><em><strong>:</strong></em><em> </em></p>
<p><em> It is a is a high-availability, high-redundancy synchronous solution that enables multiple MySQL instances to share database information. Data in a cluster can be read from or written to any node within the cluster, and information will be distributed to the other nodes. </em></p>
<p>This  technology enables clustering of in-memory databases in a shared-nothing system. Shared-nothing means each component is allocated its own memory and disk and such an architecture allows the system to work with very inexpensive hardware, and with a minimum of specific requirements for hardware or software. Use of shared storage mechanisms such as SAN, NFS etc is not supported.</p>
<ul>
<li><strong>Advantages</strong>
<ul>
<li>Offers multiple read and write nodes for data storage.</li>
<li>Provides automatic failover between nodes. Only transaction 		information for the active node being used is lost in the event of 		a failure.</li>
<li>Data on nodes is instantaneously distributed to the other 		data nodes.</li>
</ul>
</li>
<li><strong>Disadvantages</strong>
<ul>
<li>Available on a limited range of platforms.</li>
</ul>
</li>
</ul>
<p>Only a development version is available for Microsoft Windows and Apple Mac OSX. It is not supported on SuSE Eneterprise Linux 11 as of this writing. Please check the following link for more details:     http://www.mysql.com/support/supportedplatforms/cluster.html</p>
<ul>
<li>
<ul>
<li>Nodes within a cluster should be connected via a LAN; 		geographically separate nodes are not supported. However, you can 		replicate from one cluster to another using MySQL Replication, 		although the replication in this case is still asynchronous.</li>
</ul>
</li>
<li><strong>Recommended uses</strong>
<ul>
<li>Applications that need very high availability, such as 		telecoms and banking.</li>
<li>Applications that require an equal or higher number of 		writes compared to reads.</li>
</ul>
</li>
</ul>
<div class="alignright"><div class="g-plusone" data-href="http://www.instacarma.com/blog/technical/mysql-high-availability-storage-options/" size="standard" count="true"></div></div>]]></content:encoded>
			<wfw:commentRss>http://www.instacarma.com/blog/technical/mysql-high-availability-storage-options/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MySQL High Availability</title>
		<link>http://www.instacarma.com/blog/technical/mysql-high-availability/</link>
		<comments>http://www.instacarma.com/blog/technical/mysql-high-availability/#comments</comments>
		<pubDate>Tue, 28 Sep 2010 18:36:51 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Articles and tutorials]]></category>
		<category><![CDATA[Technical]]></category>
		<category><![CDATA[Advantages]]></category>
		<category><![CDATA[Disadvantages]]></category>
		<category><![CDATA[DRBD (Distributed Replicated Block Device)]]></category>
		<category><![CDATA[failover]]></category>
		<category><![CDATA[Heartbeat]]></category>
		<category><![CDATA[high availability]]></category>
		<category><![CDATA[Mysql]]></category>
		<category><![CDATA[MySQL Cluster]]></category>
		<category><![CDATA[MySQL High Availability]]></category>
		<category><![CDATA[MySQL Replication]]></category>
		<category><![CDATA[Scalability]]></category>
		<category><![CDATA[SuSE Eneterprise]]></category>

		<guid isPermaLink="false">http://instacarma.com/blog/?p=1332</guid>
		<description><![CDATA[Filed under: Advantages, Disadvantages, DRBD (Distributed Replicated Block Device), failover, Heartbeat, high availability, Mysql, MySQL Cluster, MySQL High Availability, MySQL Replication, Scalability, SuSE Eneterprise There are a various solutions available for achieving high availability and scalability of MySQL data/service. &#8216;MySQL Replication&#8217; and &#8216;MySQL Cluster&#8217; the solutions offered and supported by MySQL. Third-party solutions such as [...]]]></description>
			<content:encoded><![CDATA[<p>Filed under: <a href='http://www.instacarma.com/blog/tag/advantages/'>Advantages</a>, <a href='http://www.instacarma.com/blog/tag/disadvantages/'>Disadvantages</a>, <a href='http://www.instacarma.com/blog/tag/drbd-distributed-replicated-block-device/'>DRBD (Distributed Replicated Block Device)</a>, <a href='http://www.instacarma.com/blog/tag/failover/'>failover</a>, <a href='http://www.instacarma.com/blog/tag/heartbeat/'>Heartbeat</a>, <a href='http://www.instacarma.com/blog/tag/high-availability/'>high availability</a>, <a href='http://www.instacarma.com/blog/tag/mysql/'>Mysql</a>, <a href='http://www.instacarma.com/blog/tag/mysql-cluster/'>MySQL Cluster</a>, <a href='http://www.instacarma.com/blog/tag/mysql-high-availability/'>MySQL High Availability</a>, <a href='http://www.instacarma.com/blog/tag/mysql-replication/'>MySQL Replication</a>, <a href='http://www.instacarma.com/blog/tag/scalability/'>Scalability</a>, <a href='http://www.instacarma.com/blog/tag/suse-eneterprise/'>SuSE Eneterprise</a></p>
<p><!-- 		@page { margin: 2cm } 		P { margin-bottom: 0.21cm } -->There are a various solutions available for achieving high availability and scalability of MySQL data/service. &#8216;MySQL Replication&#8217; and &#8216;MySQL Cluster&#8217; the solutions offered and supported by MySQL. Third-party solutions such as DRBD (Distributed Replicated Block Device) and Heartbeat can also be used or one could implement a combination of these technologies.</p>
<p>The two solutions offered by MySQL are discussed here. Of these, MySQL Cluster is considered a feasible and reliable solution and is our subject of interest.</p>
<p><em><span style="text-decoration: underline;"><strong>MySQL Replication</strong></span></em><em><strong>:</strong></em><strong> </strong></p>
<p>It enables data from one MySQL server instance to be replicated to another MySQL server instance. It allows replication of data from a single master server to any number of slaves using a simple setup. However, this is an asynchronous replication solution, so the synchronization does not take place in real time, and data replication among all slaves is can not guaranteed always.</p>
<ul>
<li><strong>Advantages</strong>
<ul>
<li>This  can be implemented on any platform (which MySQL 		supports) and isn&#8217;t OS specific.</li>
<li>Replication is asynchronous and can be stopped and restarted 		at any time, and is easily manageable during network issues.</li>
<li>Data can be replicated from one master to any number of 		slaves. This is suitable for environments with heavy reads, but 		light writes, by spreading the load across multiple slaves.</li>
</ul>
</li>
<li><strong>Disadvantages</strong>
<ul>
<li>Data can only be written to the master.</li>
<li>There is no guarantee that data on master and slaves will be 		consistent at a given point in time. Due to asynchronous 		replication of data, there may be a small delay between data being 		written to the master and it being available on the slaves.</li>
</ul>
</li>
<li><strong>Recommended uses</strong>
<ul>
<li>Scale-out solutions that require a large number of reads but 		fewer writes (for example, web serving).</li>
<li>Logging/data analysis of live data. Queries can be performed 		on the slave without affecting the operation of the master.</li>
<li>Online backup (high availability &#8211; when used in combination 		with heartbeat). However, since asynchronous replication is used, 		the data may be incomplete.</li>
<li>Offline backup &#8211; Snapshot of existing data at a given point 		of time can be taken by replicating the data to a slave.</li>
</ul>
</li>
</ul>
<p><em><span style="text-decoration: underline;"><strong>MySQL Cluster</strong></span></em><em><strong>:</strong></em><em> </em></p>
<p><em> It is a is a high-availability, high-redundancy synchronous solution that enables multiple MySQL instances to share database information. Data in a cluster can be read from or written to any node within the cluster, and information will be distributed to the other nodes. </em></p>
<p>This  technology enables clustering of in-memory databases in a shared-nothing system. Shared-nothing means each component is allocated its own memory and disk and such an architecture allows the system to work with very inexpensive hardware, and with a minimum of specific requirements for hardware or software. Use of shared storage mechanisms such as SAN, NFS etc is not supported.</p>
<ul>
<li><strong>Advantages</strong>
<ul>
<li>Offers multiple read and write nodes for data storage.</li>
<li>Provides automatic failover between nodes. Only transaction 		information for the active node being used is lost in the event of 		a failure.</li>
<li>Data on nodes is instantaneously distributed to the other 		data nodes.</li>
</ul>
</li>
<li><strong>Disadvantages</strong>
<ul>
<li>Available on a limited range of platforms.</li>
</ul>
</li>
</ul>
<p>Only a development version is available for Microsoft Windows and Apple Mac OSX. It is not supported on SuSE Eneterprise Linux 11 as of this writing. Please check the following link for more details:     http://www.mysql.com/support/supportedplatforms/cluster.html</p>
<ul>
<li>
<ul>
<li>Nodes within a cluster should be connected via a LAN; 		geographically separate nodes are not supported. However, you can 		replicate from one cluster to another using MySQL Replication, 		although the replication in this case is still asynchronous.</li>
</ul>
</li>
<li><strong>Recommended uses</strong>
<ul>
<li>Applications that need very high availability, such as 		telecoms and banking.</li>
<li>Applications that require an equal or higher number of 		writes compared to reads.</li>
</ul>
</li>
</ul>
<div class="alignright"><div class="g-plusone" data-href="http://www.instacarma.com/blog/technical/mysql-high-availability/" size="standard" count="true"></div></div>]]></content:encoded>
			<wfw:commentRss>http://www.instacarma.com/blog/technical/mysql-high-availability/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MySQL database not listed in Plesk interface</title>
		<link>http://www.instacarma.com/blog/technical/mysql-database-not-listed-in-plesk-interface/</link>
		<comments>http://www.instacarma.com/blog/technical/mysql-database-not-listed-in-plesk-interface/#comments</comments>
		<pubDate>Fri, 05 Feb 2010 17:59:17 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Quick fixes]]></category>
		<category><![CDATA[Technical]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[Mysql]]></category>
		<category><![CDATA[Plesk]]></category>

		<guid isPermaLink="false">http://instacarma.com/blog/?p=1136</guid>
		<description><![CDATA[Filed under: database, Mysql, Plesk Issue : A MySQL database was created and still does exist but it is not being listed in the Plesk interface. Solution : This usually happens when the database is not created via Plesk. Instead, it might have been created via SSH. To get around this, there are two ways [...]]]></description>
			<content:encoded><![CDATA[<p>Filed under: <a href='http://www.instacarma.com/blog/tag/database/'>database</a>, <a href='http://www.instacarma.com/blog/tag/mysql/'>Mysql</a>, <a href='http://www.instacarma.com/blog/tag/plesk/'>Plesk</a></p>
<p><strong>Issue : </strong></p>
<p>A MySQL database was created and still does exist but it is not being listed in the Plesk interface.</p>
<p><strong>Solution : </strong></p>
<p>This usually happens when the database is not created via Plesk. Instead, it might have been created via SSH.</p>
<p>To get around this, there are two ways : </p>
<p>1. This is the simpler of the two. </p>
<p>Just take a dump of the database.</p>
<blockquote><p>mysqldump -u &lt;username&gt; -p &lt;password&gt; databasename > databasename.sql </p></blockquote>
<p>Drop the database.</p>
<blockquote><p>mysql -u &lt;username&gt; -p &lt;password&gt;<br />
drop database &lt;databasename&gt;</p></blockquote>
<p>Create the database via Plesk.<br />
Plesk Control Panel >> Domains >> Mysql Database >> Add Database</p>
<p>Restore the database.</p>
<blockquote><p>mysql databasename < databasename.sql</p></blockquote>
<p>2. Another method is a bit complex one and is advised for expert users only.</p>
<p>After taking a backup of the current <em>psa</em> database, you will have to edit it from the backend and add the database details in the database table manually. </p>
<div class="alignright"><div class="g-plusone" data-href="http://www.instacarma.com/blog/technical/mysql-database-not-listed-in-plesk-interface/" size="standard" count="true"></div></div>]]></content:encoded>
			<wfw:commentRss>http://www.instacarma.com/blog/technical/mysql-database-not-listed-in-plesk-interface/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Resetting MySQL password</title>
		<link>http://www.instacarma.com/blog/technical/resetting-mysql-password/</link>
		<comments>http://www.instacarma.com/blog/technical/resetting-mysql-password/#comments</comments>
		<pubDate>Wed, 09 Dec 2009 17:06:43 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Quick fixes]]></category>
		<category><![CDATA[Technical]]></category>
		<category><![CDATA[Mysql]]></category>
		<category><![CDATA[password]]></category>

		<guid isPermaLink="false">http://instacarma.com/blog/?p=1026</guid>
		<description><![CDATA[Filed under: Mysql, password Issue : How to reset MySQL &#8216;root&#8217; password ? Solution : -> Stop the mysql daemon. /etc/init.d/mysqld stop -> Run the following commands : mysqld_safe &#8211;skip-grant-tables &#038; mysql -u root mysql> use mysql; mysql> update user set password=PASSWORD(&#8220;newrootpassword&#8221;) where User=&#8217;root&#8217;; mysql> flush privileges; mysql> quit -> Restart the service. /etc/init.d/mysqld stop [...]]]></description>
			<content:encoded><![CDATA[<p>Filed under: <a href='http://www.instacarma.com/blog/tag/mysql/'>Mysql</a>, <a href='http://www.instacarma.com/blog/tag/password/'>password</a></p>
<p><strong>Issue : </strong></p>
<p>How to reset MySQL &#8216;root&#8217; password ?</p>
<p><strong>Solution : </strong></p>
<p>-> Stop the mysql daemon.</p>
<blockquote><p>/etc/init.d/mysqld stop</p></blockquote>
<p>-> Run the following commands :</p>
<blockquote><p>mysqld_safe &#8211;skip-grant-tables &#038;<br />
mysql -u root<br />
mysql> use mysql;<br />
mysql> update user set password=PASSWORD(&#8220;newrootpassword&#8221;) where User=&#8217;root&#8217;;<br />
mysql> flush privileges;<br />
mysql> quit</p></blockquote>
<p>-> Restart the service.</p>
<blockquote><p>/etc/init.d/mysqld stop<br />
/etc/init.d/mysqld start</p></blockquote>
<div class="alignright"><div class="g-plusone" data-href="http://www.instacarma.com/blog/technical/resetting-mysql-password/" size="standard" count="true"></div></div>]]></content:encoded>
			<wfw:commentRss>http://www.instacarma.com/blog/technical/resetting-mysql-password/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MySQL:Got a packet bigger than &#8216;max_allowed_packet&#8217; bytes</title>
		<link>http://www.instacarma.com/blog/technical/mysqlgot-a-packet-bigger-than-max_allowed_packet-bytes/</link>
		<comments>http://www.instacarma.com/blog/technical/mysqlgot-a-packet-bigger-than-max_allowed_packet-bytes/#comments</comments>
		<pubDate>Wed, 11 Nov 2009 19:53:41 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Quick fixes]]></category>
		<category><![CDATA[Technical]]></category>
		<category><![CDATA[cPanel]]></category>
		<category><![CDATA[Mysql]]></category>
		<category><![CDATA[phpmyadmin]]></category>

		<guid isPermaLink="false">http://instacarma.com/blog/?p=967</guid>
		<description><![CDATA[Filed under: cPanel, Mysql, phpmyadmin Issue : While trying to restore a database through phpmyadmin, following error occurs: #1153 &#8211; Got a packet bigger than &#8216;max_allowed_packet&#8217; bytes Solution : This error occurs if the packet size is more than the default value OR the value defined in the my.cnf file. my.cnf might be blank on [...]]]></description>
			<content:encoded><![CDATA[<p>Filed under: <a href='http://www.instacarma.com/blog/tag/cpanel/'>cPanel</a>, <a href='http://www.instacarma.com/blog/tag/mysql/'>Mysql</a>, <a href='http://www.instacarma.com/blog/tag/phpmyadmin/'>phpmyadmin</a></p>
<p><strong>Issue : </strong></p>
<p>While trying to restore a database through phpmyadmin, following error occurs:</p>
<p><em>#1153 &#8211; Got a packet bigger than &#8216;max_allowed_packet&#8217; bytes</em></p>
<p><strong>Solution : </strong></p>
<p>This error occurs if  the packet size is more than the default value OR the value defined in the <em>my.cnf</em> file.<br />
<em>my.cnf</em> might be blank on a cPanel server by default. You can simply add the variable to it or increase the value if it already exists.</p>
<p>For example,</p>
<blockquote><p>max_allowed_packet = 2097152</p></blockquote>
<div class="alignright"><div class="g-plusone" data-href="http://www.instacarma.com/blog/technical/mysqlgot-a-packet-bigger-than-max_allowed_packet-bytes/" size="standard" count="true"></div></div>]]></content:encoded>
			<wfw:commentRss>http://www.instacarma.com/blog/technical/mysqlgot-a-packet-bigger-than-max_allowed_packet-bytes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Database backup generates an empty file</title>
		<link>http://www.instacarma.com/blog/technical/database-backup-generates-an-empty-file/</link>
		<comments>http://www.instacarma.com/blog/technical/database-backup-generates-an-empty-file/#comments</comments>
		<pubDate>Fri, 18 Sep 2009 17:06:52 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Quick fixes]]></category>
		<category><![CDATA[Technical]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[cPanel]]></category>
		<category><![CDATA[Mysql]]></category>

		<guid isPermaLink="false">http://instacarma.com/blog/?p=857</guid>
		<description><![CDATA[Filed under: backup, cPanel, Mysql Issue : After downloading a database backup through cPanel (Download a MySQL database back-up) , the tar file generated is empty! Solution : This usually happens when you are logged in to cPanel with the root/reseller password. Log in with the user password and then try to take a back-up. [...]]]></description>
			<content:encoded><![CDATA[<p>Filed under: <a href='http://www.instacarma.com/blog/tag/backup/'>backup</a>, <a href='http://www.instacarma.com/blog/tag/cpanel/'>cPanel</a>, <a href='http://www.instacarma.com/blog/tag/mysql/'>Mysql</a></p>
<p><strong>Issue : </strong></p>
<p>After downloading a database backup through cPanel (Download a MySQL database back-up) , the tar file generated is empty!</p>
<p><strong>Solution : </strong></p>
<p>This usually happens when you are logged in to cPanel with the root/reseller password. Log in with the user password and then try to take a back-up. That should work.</p>
<div class="alignright"><div class="g-plusone" data-href="http://www.instacarma.com/blog/technical/database-backup-generates-an-empty-file/" size="standard" count="true"></div></div>]]></content:encoded>
			<wfw:commentRss>http://www.instacarma.com/blog/technical/database-backup-generates-an-empty-file/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Disabling remote access to MySQL databases</title>
		<link>http://www.instacarma.com/blog/technical/disabling-remote-access-to-mysql-databases/</link>
		<comments>http://www.instacarma.com/blog/technical/disabling-remote-access-to-mysql-databases/#comments</comments>
		<pubDate>Fri, 18 Sep 2009 16:00:37 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Quick fixes]]></category>
		<category><![CDATA[Technical]]></category>
		<category><![CDATA[Mysql]]></category>

		<guid isPermaLink="false">http://instacarma.com/blog/?p=853</guid>
		<description><![CDATA[Filed under: Mysql Issue : How to prevent anybody from accessing MySQL databases hosted on the server from any local PC ? Solution : This can be achieved in two ways : 1. By blocking the port 3306 . You can use iptables in order to do this : /sbin/iptables -A INPUT -i eth0 -p [...]]]></description>
			<content:encoded><![CDATA[<p>Filed under: <a href='http://www.instacarma.com/blog/tag/mysql/'>Mysql</a></p>
<p><strong>Issue : </strong></p>
<p>How to prevent anybody from accessing MySQL databases hosted on the server from any local PC ?</p>
<p><strong>Solution : </strong></p>
<p>This can be achieved in two ways : </p>
<p>1. By blocking the port 3306 . You can use <em>iptables</em> in order to do this :</p>
<blockquote><p>/sbin/iptables -A INPUT -i eth0 -p tcp &#8211;destination-port 3306 -j DROP</p></blockquote>
<p>                         OR</p>
<p>2. Put the following in my.cnf :</p>
<blockquote><p>skip-networking</p></blockquote>
<p>Source : WHT</p>
<div class="alignright"><div class="g-plusone" data-href="http://www.instacarma.com/blog/technical/disabling-remote-access-to-mysql-databases/" size="standard" count="true"></div></div>]]></content:encoded>
			<wfw:commentRss>http://www.instacarma.com/blog/technical/disabling-remote-access-to-mysql-databases/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>No  space left on device</title>
		<link>http://www.instacarma.com/blog/technical/no-space-left-on-device/</link>
		<comments>http://www.instacarma.com/blog/technical/no-space-left-on-device/#comments</comments>
		<pubDate>Wed, 19 Aug 2009 16:01:37 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Quick fixes]]></category>
		<category><![CDATA[Technical]]></category>
		<category><![CDATA[disk]]></category>
		<category><![CDATA[Mysql]]></category>
		<category><![CDATA[space]]></category>

		<guid isPermaLink="false">http://instacarma.com/blog/?p=754</guid>
		<description><![CDATA[Filed under: disk, Mysql, space Issue : Following error shows up on the websites which run with mysql. Warning: session_write_close() [function.session-write-close]: write failed: No space left on device (28) in /usr/local/cpanel/base/3rdparty/phpMyAdmin/index.php on line 42 Restarting MySQL fixes the issue temporarily. Fix : This usually occurs when /tmp runs out of space. You can check the [...]]]></description>
			<content:encoded><![CDATA[<p>Filed under: <a href='http://www.instacarma.com/blog/tag/disk/'>disk</a>, <a href='http://www.instacarma.com/blog/tag/mysql/'>Mysql</a>, <a href='http://www.instacarma.com/blog/tag/space/'>space</a></p>
<p><strong>Issue : </strong></p>
<p>Following error shows up on the websites  which run with  mysql. </p>
<p><em>Warning: session_write_close() [function.session-write-close]: write failed: No<br />
 space left on device (28)<br />
in /usr/local/cpanel/base/3rdparty/phpMyAdmin/index.php on line 42 </em></p>
<p>Restarting MySQL fixes the issue temporarily.</p>
<p><strong>Fix : </strong></p>
<p>This usually occurs when <em> /tmp</em> runs out of space. You can check the space by using the following command:</p>
<blockquote><p>root@server# df -h </p></blockquote>
<p>Couple of tips to clear some space in<em> /tmp</em> :</p>
<p>1. Check and remove older session files.</p>
<blockquote><p>root@server# rm -f /tmp/sess*</p></blockquote>
<p>2. Get rid of semaphores.</p>
<blockquote><p>root@server# ipcs -s | grep nobody | perl -e &#8216;while (<STDIN>) { @a=split(/\s+/); print `ipcrm sem $a[1]`}&#8217;</p></blockquote>
<div class="alignright"><div class="g-plusone" data-href="http://www.instacarma.com/blog/technical/no-space-left-on-device/" size="standard" count="true"></div></div>]]></content:encoded>
			<wfw:commentRss>http://www.instacarma.com/blog/technical/no-space-left-on-device/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Logging in to PHPMyAdmin directly</title>
		<link>http://www.instacarma.com/blog/technical/logging-in-to-phpmyadmin-directly/</link>
		<comments>http://www.instacarma.com/blog/technical/logging-in-to-phpmyadmin-directly/#comments</comments>
		<pubDate>Tue, 18 Aug 2009 16:33:37 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Quick fixes]]></category>
		<category><![CDATA[Technical]]></category>
		<category><![CDATA[Mysql]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[phpmyadmin]]></category>

		<guid isPermaLink="false">http://instacarma.com/blog/?p=742</guid>
		<description><![CDATA[Filed under: Mysql, PHP, phpmyadmin Issue : How to login to PHPMyAdmin directly (without logging in to the cPanel interface) ? Solution : This can be achieved by the following steps : First, download and untar the latest version in to your public_html folder. wget http://downloads.sourceforge.net/project/phpmyadmin/phpMyAdmin/2.11.9.5/phpMyAdmin-2.11.9.5-english.tar.gz tar -zxvf phpMyAdmin-2.11.9.5-english.tar.gz cd phpMyAdmin-2.11.9.5-english mv phpMyAdmin-2.11.9.5-english phpMyAdmin Then, [...]]]></description>
			<content:encoded><![CDATA[<p>Filed under: <a href='http://www.instacarma.com/blog/tag/mysql/'>Mysql</a>, <a href='http://www.instacarma.com/blog/tag/php/'>PHP</a>, <a href='http://www.instacarma.com/blog/tag/phpmyadmin/'>phpmyadmin</a></p>
<p><strong>Issue : </strong></p>
<p>How to login to PHPMyAdmin directly (without logging in to the cPanel interface) ?</p>
<p><strong>Solution : </strong></p>
<p>This can be achieved by the following steps :</p>
<p>First, download and untar the latest version in to your public_html folder.</p>
<blockquote><p>wget http://downloads.sourceforge.net/project/phpmyadmin/phpMyAdmin/2.11.9.5/phpMyAdmin-2.11.9.5-english.tar.gz<br />
tar -zxvf phpMyAdmin-2.11.9.5-english.tar.gz<br />
cd phpMyAdmin-2.11.9.5-english<br />
mv phpMyAdmin-2.11.9.5-english phpMyAdmin</p></blockquote>
<p>Then, create a file named <em>config.inc.php</em> and put the following entries in it .</p>
<blockquote><p>vi config.inc.php<br />
&#8212;&#8212;&#8212;<br />
<?php</p>
<p>$i=0;<br />
$i++;<br />
$cfg['Servers'][$i]['user']          = 'example_test'; //database username<br />
$cfg['Servers'][$i]['password']      = 'qazplm123'; // use here your password<br />
$cfg['Servers'][$i]['auth_type']     = 'config';<br />
?><br />
&#8212;&#8212;&#8212;-</p></blockquote>
<p>Now, you would be able to access it as http://domainname.com/phpmyadmin</p>
<p>For more details on this , please refer <a href="http://www.aota.net/PHP_and_MySQL/phpmyadmin.php4">this.</a></p>
<div class="alignright"><div class="g-plusone" data-href="http://www.instacarma.com/blog/technical/logging-in-to-phpmyadmin-directly/" size="standard" count="true"></div></div>]]></content:encoded>
			<wfw:commentRss>http://www.instacarma.com/blog/technical/logging-in-to-phpmyadmin-directly/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Automating check and repair on MySQL Databases</title>
		<link>http://www.instacarma.com/blog/technical/automating-check-and-repair-on-mysql-databases/</link>
		<comments>http://www.instacarma.com/blog/technical/automating-check-and-repair-on-mysql-databases/#comments</comments>
		<pubDate>Thu, 30 Jul 2009 19:56:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Quick fixes]]></category>
		<category><![CDATA[Technical]]></category>
		<category><![CDATA[cPanel]]></category>
		<category><![CDATA[cron]]></category>
		<category><![CDATA[Mysql]]></category>

		<guid isPermaLink="false">http://instacarma.com/blog/?p=684</guid>
		<description><![CDATA[Filed under: cPanel, cron, Mysql Issue: Cron job required for scheduling automatic checks and repairs on MySQL Databases. Solution : Use the following cron : 0 1 * * * /usr/bin/mysqlcheck -Aao &#8211;auto-repair -u -p&#8217; &#8216; Please note that this will show your MySQL password in the process list. You can get around this by [...]]]></description>
			<content:encoded><![CDATA[<p>Filed under: <a href='http://www.instacarma.com/blog/tag/cpanel/'>cPanel</a>, <a href='http://www.instacarma.com/blog/tag/cron/'>cron</a>, <a href='http://www.instacarma.com/blog/tag/mysql/'>Mysql</a></p>
<p><strong>Issue: </strong></p>
<p>Cron job required for scheduling automatic checks and repairs on MySQL Databases.</p>
<p><strong>Solution : </strong></p>
<p>Use the following cron : </p>
<blockquote><p>
0 1 * * * /usr/bin/mysqlcheck -Aao &#8211;auto-repair -u <shared_user> -p&#8217;
<pass>&#8216;</p></blockquote>
<p>Please note that this will show your MySQL password in the process list. You can get around this by writing the password to <em>~root/.db_shadow</em>, chowned root, chmod 400, and then reference it as `<em>cat ~/.db_shadow`</em> in the cron command instead of the actual password (note the backslashes in that command) .</p>
<p>Or, if it is not  running as root, instead running as a cPanel user, putting the password in a file called .db_shadow in the home of your account, and running the command as follows would achieve the purpose.</p>
<blockquote><p>/usr/bin/mysqlcheck -Aao &#8211;auto-repair -u <shared_user> -p&#8221;$(< .db_shadow)"</p></blockquote>
<div class="alignright"><div class="g-plusone" data-href="http://www.instacarma.com/blog/technical/automating-check-and-repair-on-mysql-databases/" size="standard" count="true"></div></div>]]></content:encoded>
			<wfw:commentRss>http://www.instacarma.com/blog/technical/automating-check-and-repair-on-mysql-databases/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Error #1153 &#8211; Got a packet bigger than &#8216;max_allowed_packet&#8217; bytes</title>
		<link>http://www.instacarma.com/blog/technical/error-1153-got-a-packet-bigger-than-max_allowed_packet-bytes/</link>
		<comments>http://www.instacarma.com/blog/technical/error-1153-got-a-packet-bigger-than-max_allowed_packet-bytes/#comments</comments>
		<pubDate>Thu, 02 Jul 2009 20:33:56 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Quick fixes]]></category>
		<category><![CDATA[Technical]]></category>
		<category><![CDATA[Mysql]]></category>
		<category><![CDATA[phpmyadmin]]></category>

		<guid isPermaLink="false">http://instacarma.com/blog/?p=598</guid>
		<description><![CDATA[Filed under: Mysql, phpmyadmin Issue : While trying to import a database via PhpMyAdmin , following error occurred : #1153 &#8211; Got a packet bigger than &#8216;max_allowed_packet&#8217; bytes Fix: Get into the file /etc/my.cnf Change the following to the required value : ================ max_allowed_packet = 16M ================ This should resolve the issue.]]></description>
			<content:encoded><![CDATA[<p>Filed under: <a href='http://www.instacarma.com/blog/tag/mysql/'>Mysql</a>, <a href='http://www.instacarma.com/blog/tag/phpmyadmin/'>phpmyadmin</a></p>
<p><strong>Issue : </strong></p>
<p>While trying to import a database via PhpMyAdmin , following error occurred :</p>
<p><em>#1153 &#8211; Got a packet bigger than &#8216;max_allowed_packet&#8217; bytes </em></p>
<p><strong>Fix: </strong></p>
<p>Get into the file /etc/my.cnf<br />
Change the following to the required value :</p>
<p>================<br />
max_allowed_packet = 16M<br />
================</p>
<p>This should resolve the issue. </p>
<div class="alignright"><div class="g-plusone" data-href="http://www.instacarma.com/blog/technical/error-1153-got-a-packet-bigger-than-max_allowed_packet-bytes/" size="standard" count="true"></div></div>]]></content:encoded>
			<wfw:commentRss>http://www.instacarma.com/blog/technical/error-1153-got-a-packet-bigger-than-max_allowed_packet-bytes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Changing MySQL user password via shell</title>
		<link>http://www.instacarma.com/blog/technical/changing-mysql-user-password-via-shell/</link>
		<comments>http://www.instacarma.com/blog/technical/changing-mysql-user-password-via-shell/#comments</comments>
		<pubDate>Wed, 24 Jun 2009 15:31:36 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Quick fixes]]></category>
		<category><![CDATA[Technical]]></category>
		<category><![CDATA[Mysql]]></category>

		<guid isPermaLink="false">http://instacarma.com/blog/?p=585</guid>
		<description><![CDATA[Filed under: Mysql Issue : To list the mysql users and change the password for a particular user via shell. Solution : You need to be logged in as &#8216;root&#8217; in order to do this. To list the users: # mysql -u root -p mysql> SELECT User from mysql.user; To change the password : # [...]]]></description>
			<content:encoded><![CDATA[<p>Filed under: <a href='http://www.instacarma.com/blog/tag/mysql/'>Mysql</a></p>
<p><strong>Issue :</strong></p>
<p>To list the mysql users and  change the password for a particular user via shell.</p>
<p><strong>Solution </strong>: </p>
<p>You need to be logged in as &#8216;root&#8217; in order to do this.</p>
<p>To list the users: </p>
<blockquote><p># mysql -u root -p<br />
mysql> SELECT User from mysql.user;</p></blockquote>
<p>To change the password :</p>
<blockquote><p># mysql -u root -p<br />
mysql> SET PASSWORD FOR &#8216;user&#8217;@'hostname&#8217; = PASSWORD(&#8216;newpassword&#8217;);<br />
mysql> flush privileges;</p></blockquote>
<p>Note : When setting database privileges, remember that underscore (_) is a special character, which is like dot (.) in regular expressions.</p>
<p>GRANT ALL ON `db_name`&#8230; grants access to many databases, but<br />
GRANT ALL ON `db\_name`&#8230; grants access to single database named &#8220;db_name&#8221;.</p>
<div class="alignright"><div class="g-plusone" data-href="http://www.instacarma.com/blog/technical/changing-mysql-user-password-via-shell/" size="standard" count="true"></div></div>]]></content:encoded>
			<wfw:commentRss>http://www.instacarma.com/blog/technical/changing-mysql-user-password-via-shell/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ERROR 2002 (HY000): Can’t connect to local MySQL server</title>
		<link>http://www.instacarma.com/blog/technical/error-2002-hy000-can%e2%80%99t-connect-to-local-mysql-server/</link>
		<comments>http://www.instacarma.com/blog/technical/error-2002-hy000-can%e2%80%99t-connect-to-local-mysql-server/#comments</comments>
		<pubDate>Wed, 03 Jun 2009 17:51:26 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Quick fixes]]></category>
		<category><![CDATA[Technical]]></category>
		<category><![CDATA[Mysql]]></category>

		<guid isPermaLink="false">http://instacarma.com/blog/?p=415</guid>
		<description><![CDATA[Filed under: Mysql Issue : After upgrading from MySQL4.1 to MySQL5 on a cPanel server, MySQL is failing to start with the error: ERROR 2002 (HY000): Can’t connect to local MyS QL server through socket ‘/var/lib/mysql/mysql.sock’ (2) Fix : To fix this, run the following command: mv /etc/my.cnf /etc/my.cnf.OLD Then force update MySQL : /scripts/mysqlup [...]]]></description>
			<content:encoded><![CDATA[<p>Filed under: <a href='http://www.instacarma.com/blog/tag/mysql/'>Mysql</a></p>
<p><strong>Issue :</strong></p>
<p>After upgrading from MySQL4.1 to MySQL5 on a cPanel server, MySQL is failing to start with the error:</p>
<p><em>ERROR 2002 (HY000): Can’t connect to local MyS QL server through socket ‘/var/lib/mysql/mysql.sock’ (2)</em></p>
<p><strong>Fix : </strong></p>
<p>To fix this, run the following command:</p>
<blockquote><p>mv /etc/my.cnf /etc/my.cnf.OLD</p></blockquote>
<p>Then force update MySQL :</p>
<p><em>/scripts/mysqlup &#8211;force</em></p>
<div class="alignright"><div class="g-plusone" data-href="http://www.instacarma.com/blog/technical/error-2002-hy000-can%e2%80%99t-connect-to-local-mysql-server/" size="standard" count="true"></div></div>]]></content:encoded>
			<wfw:commentRss>http://www.instacarma.com/blog/technical/error-2002-hy000-can%e2%80%99t-connect-to-local-mysql-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Tutorial on clearing  Disk Space on a Server</title>
		<link>http://www.instacarma.com/blog/technical/tutorial-on-clearing-out-disk-space/</link>
		<comments>http://www.instacarma.com/blog/technical/tutorial-on-clearing-out-disk-space/#comments</comments>
		<pubDate>Sun, 24 May 2009 13:47:03 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Articles and tutorials]]></category>
		<category><![CDATA[Popular Posts]]></category>
		<category><![CDATA[Quick fixes]]></category>
		<category><![CDATA[Technical]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[cPanel]]></category>
		<category><![CDATA[disk]]></category>
		<category><![CDATA[exim]]></category>
		<category><![CDATA[Mysql]]></category>
		<category><![CDATA[space]]></category>

		<guid isPermaLink="false">http://instacarma.com/blog/?p=375</guid>
		<description><![CDATA[Filed under: apache, backup, cPanel, disk, exim, Mysql, space Running out of disk space is a very common issue.  Be it a web-hosting service provider or the end-user.  I wanted to share a few tips that the technical support staff  at InstaCarma use to resolve disk-space issues on a cPanel server. As we all know, [...]]]></description>
			<content:encoded><![CDATA[<p>Filed under: <a href='http://www.instacarma.com/blog/tag/apache/'>apache</a>, <a href='http://www.instacarma.com/blog/tag/backup/'>backup</a>, <a href='http://www.instacarma.com/blog/tag/cpanel/'>cPanel</a>, <a href='http://www.instacarma.com/blog/tag/disk/'>disk</a>, <a href='http://www.instacarma.com/blog/tag/exim/'>exim</a>, <a href='http://www.instacarma.com/blog/tag/mysql/'>Mysql</a>, <a href='http://www.instacarma.com/blog/tag/space/'>space</a></p>
<p>Running out of disk space is a very common issue.  Be it a <strong>web-hosting </strong>service provider or the end-user.  I wanted to share a few tips that the<strong> technical support</strong> staff  at <strong>InstaCarma</strong> use to resolve disk-space issues on a <strong>cPanel</strong> server. As we all know, there are various partitions on a server which are meant for different purposes. So, the methods used to deal with space issues on these partitions will also vary. Let us see them one by one.</p>
<p>The <strong>/USR</strong> partition</p>
<p>1. Restart the<strong><em> httpd</em></strong> service. This might free a little space some times.</p>
<p>2. Check for <strong><em>apache logs</em></strong> like error_log, access_log , suexec_log in <em>/usr/local/apache/logs</em> . These can either be cleared off or if you need the logs then you can take a zipped copy and keep it aside.</p>
<p>3. Same can be done for the files in<em> <strong>cPanel logs</strong></em> (<em>/usr/local/cpanel/logs</em>)  as well .</p>
<p>4. <strong><em>Domlogs</em></strong> &#8211; Get into  the <em>/usr/local/apache/domlogs/</em> directory. Run the following command :-</p>
<p># ls -al -SR | head -10        &#8212;&gt; It will list 10 files in the decreasing order according to their size</p>
<p>If the domlog file is too large for a domain then it is possible that <em>awstats</em> is not running . Check whether <em>cpanellogd</em> is running on the server  using <em> pstree</em> . If not, restart it .<br />
Else, it is possible that awstats for only that particular domain is not updating. Get into the directory <em>/usr/local/cpanel/base</em> and check if any file as &#8216;awstats.domainname.com.conf&#8217; exists.   If yes , delete that file.</p>
<p>Now,  run <em>/scripts/runweblogs</em> for that user.  It will update the awstats and automatically clear the domlogs file thereafter.<strong> Do not</strong> delete the domlogs file itself.</p>
<p>5. Remove old and unwanted backups of  &#8216;apache&#8217;  that might have been taken long ago. Also, check for any other duplicate folders that can be removed safely.</p>
<p>6. Remove<strong> core files, </strong>if any . Normally, some core files (like core.1234) might be present in<em> /usr/local/cpanel/whostmgr/docroot</em> . Check for these and remove them.</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p>The <strong>/HOME</strong> partition</p>
<p>1.  Check for unwanted cpmove/tar files for the user accounts in <em>/home</em> and delete them.</p>
<p>2.  Check for any cpmove folders as well in <em>/home</em></p>
<p>3.  Check the folder &#8216;cprestore&#8217;  in <em>/home</em> for any tar files. Be careful. These should  be deleted only if they are very old,say about 4-5 months.</p>
<p>4. Using <em>find</em> command you can check for unwanted tar files(especially cpmove/backup) in the entire home directory. Check their size. If you think that deleting them will  make considerable difference to the disk space then delete them.</p>
<p>5. Check for core files and delete them.</p>
<p>6.  Search for large accounts and see if they are hosting any prohibited content or violating your company policies. If yes, take appropriate measures as per your policies.</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p>The <strong>/VAR</strong> partition</p>
<p>1. Restart the <strong>mysql</strong> service.</p>
<p>2. Log files in <em>/var/log </em>like exim_mainlog, mailmon.log, messages, mysqld.log, mysql_slow_queries.log  can be deleted after taking backups of the required ones..</p>
<p>Note that there is no point in deleting these log files if the size is very small. Check whether deleting these would make any difference.</p>
<p>If you are deleting them then do <strong>re-create</strong> the files, or you can use the command &#8216;echo &#8221; &#8221; &gt; logfile&#8217; to empty the existing files.</p>
<p>3.  Clear Mysql logs like server-name.err or any other  present  in <em>/var/lib/mysql</em></p>
<p>4. Delete mysql-bin.000* file  in <em>/var/lib/mysql</em>, if present.</p>
<p>5. There might be useless large .sql files   in <em>/var/lib/mysql</em> . Delete them.</p>
<p>6.  Remove unwanted emails from spool. You can use the following code to do that :</p>
<blockquote><p>exim -bpc<br />
exim -bpru | grep frozen | awk {&#8216;print $3&#8242;}|xargs exim -Mrm<br />
exim -bpru | grep &#8220;&lt;&gt;&#8221; | awk {&#8216;print $3&#8242;}|xargs exim -Mrm<br />
exim -bpru | grep &#8220;nobody&#8221; | awk {&#8216;print $3&#8242;}|xargs exim -Mrm<br />
exim -bpru|awk {&#8216;print $3&#8242;}|xargs exim -Mrm<br />
exiqgrep -o 86400 -i | xargs exim -Mrm<br />
exim -bpc</p></blockquote>
<p>7. There might be yum cache files inside the <em>/var/cache</em> folder which can take space. To remove them do:<br />
#  yum clear all<br />
#  yum list all</p>
<p>8. Again, search for any core files ( core dump ) like core.12* etc.</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p>The <strong>/BACKUP</strong> partition</p>
<p>1. Remove any tar/cpmove files if they are too old and large.</p>
<p>2. Remove any old  configuration backups ( like apache.bkp) or any log file backup , say 3-4 months old.</p>
<p>3. Check for core files and remove them.</p>
<p>These are some of the general steps that can be followed to deal with space issues on the servers.</p>
<div class="alignright"><div class="g-plusone" data-href="http://www.instacarma.com/blog/technical/tutorial-on-clearing-out-disk-space/" size="standard" count="true"></div></div>]]></content:encoded>
			<wfw:commentRss>http://www.instacarma.com/blog/technical/tutorial-on-clearing-out-disk-space/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PhpMyadmin errror &#8220;#2002</title>
		<link>http://www.instacarma.com/blog/technical/phpmyadmin-errror-2002/</link>
		<comments>http://www.instacarma.com/blog/technical/phpmyadmin-errror-2002/#comments</comments>
		<pubDate>Sat, 09 May 2009 17:23:41 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Quick fixes]]></category>
		<category><![CDATA[Technical]]></category>
		<category><![CDATA[Mysql]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[phpmyadmin]]></category>

		<guid isPermaLink="false">http://instacarma.com/blog/?p=176</guid>
		<description><![CDATA[Filed under: Mysql, PHP, phpmyadmin Issue : The phpMyadmin errror &#8220;#2002 &#8211; The server is not responding (or the local MySQL server&#8217;s socket is not correctly configured)&#8221; Fix : 1.First check whether mysql is working in the server or not. 2. Check whether there is a symbolic link from mysql.sock to /tmp. If not, create [...]]]></description>
			<content:encoded><![CDATA[<p>Filed under: <a href='http://www.instacarma.com/blog/tag/mysql/'>Mysql</a>, <a href='http://www.instacarma.com/blog/tag/php/'>PHP</a>, <a href='http://www.instacarma.com/blog/tag/phpmyadmin/'>phpmyadmin</a></p>
<p><strong>Issue : </strong></p>
<p>The phpMyadmin errror &#8220;#2002 &#8211; The server is not responding (or the local MySQL server&#8217;s socket is not correctly configured)&#8221;</p>
<p><strong>Fix : </strong></p>
<p>1.First check whether mysql is working in the server or not.</p>
<p>2. Check whether there is a symbolic link from mysql.sock to /tmp. If not, create a symlink between /var/lib/mysql/mysql.sock and /tmp/mysql.sock.<br />
~~~~~~~~~<br />
ln -s /var/lib/mysql/mysql.sock /tmp/mysql.sock<br />
~~~~~~~~~</p>
<p>3. If this doesn&#8217;t fix the issue check the file: /usr/local/cPanel/base/3rdparty/phpMyAdmin/config.inc.php and make sure the entries are like this:<br />
~~~~~~~~~~~~~~~~<br />
$cfg['Servers'][$i]['socket'] = &#8216;/var/lib/mysql/mysql.sock&#8217;;<br />
$cfg['Servers'][$i]['connect_type'] = &#8216;socket&#8217;;</p>
<div class="alignright"><div class="g-plusone" data-href="http://www.instacarma.com/blog/technical/phpmyadmin-errror-2002/" size="standard" count="true"></div></div>]]></content:encoded>
			<wfw:commentRss>http://www.instacarma.com/blog/technical/phpmyadmin-errror-2002/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

