<?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; MySQL</title>
	<atom:link href="http://wiredgorilla.com.au/category/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.1</generator>
		<item>
		<title>Linux Server Type: Restoring MySQL SimLink.</title>
		<link>http://wiredgorilla.com.au/2010/02/linux-server-type-restoring-mysql-simlink/</link>
		<comments>http://wiredgorilla.com.au/2010/02/linux-server-type-restoring-mysql-simlink/#comments</comments>
		<pubDate>Tue, 16 Feb 2010 07:08:04 +0000</pubDate>
		<dc:creator>jada</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Simlink]]></category>
		<category><![CDATA[SSH]]></category>

		<guid isPermaLink="false">http://wiredgorilla.com.au/?p=664</guid>
		<description><![CDATA[If you&#8217;re unable to restart mysqld and troubleshooting the cause: if u log into SSH and go to /tmp you may see that there is no simlink To create a simlink you can do the following: cd /var/lib/mysql/ touch mysql.sock chmod 1777 mysql.sock chown mysql.mysql mysql.sock Create a symlink for the sock file :- ln


No related posts.]]></description>
			<content:encoded><![CDATA[<p>If you&#8217;re unable to restart mysqld and troubleshooting the cause: if u log into SSH and go to /tmp you may see that there is no simlink</p>
<p>To create a simlink you can do the following:</p>
<p>cd /var/lib/mysql/<br />
touch mysql.sock<br />
chmod 1777 mysql.sock<br />
chown mysql.mysql mysql.sock</p>
<p>Create a symlink for the sock file :-<br />
ln -s /var/lib/mysql/mysql.sock /tmp</p>
<p>Restart mysql :- service mysql restart</p>
<p>Then your MySQL service should be back to normal.</p>


<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://wiredgorilla.com.au/2010/02/linux-server-type-restoring-mysql-simlink/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How To Set Up A Load-Balanced MySQL Cluster With MySQL 5.1</title>
		<link>http://wiredgorilla.com.au/2009/04/set-loadbalanced-mysql-cluster-mysql-51/</link>
		<comments>http://wiredgorilla.com.au/2009/04/set-loadbalanced-mysql-cluster-mysql-51/#comments</comments>
		<pubDate>Sat, 18 Apr 2009 01:05:47 +0000</pubDate>
		<dc:creator>wiredgorilla</dc:creator>
				<category><![CDATA[Linux Tutorials]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[cluster]]></category>
		<category><![CDATA[load balance]]></category>

		<guid isPermaLink="false">http://wiredgorilla.com.au/?p=657</guid>
		<description><![CDATA[This tutorial is based on Falko Timme&#8217;s tutorial for MySQL Cluster 5.0. It shows how to configure a MySQL 5.1 cluster with five nodes: 1 x management, 2 x storage nodes and 2 x balancer nodes. This cluster is load-balanced by an Ultra Monkey package which provides heartbeat (for checking if the other node is


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[<p>This tutorial is based on Falko Timme&#8217;s tutorial for MySQL Cluster 5.0. It shows how to configure a MySQL 5.1 cluster with five nodes: 1 x management, 2 x storage nodes and 2 x balancer nodes. This cluster is load-balanced by an Ultra Monkey package which provides heartbeat (for checking if the other node is still alive) and ldirectord (to split up the requests to the nodes of the MySQL cluster).<br />
<span id="more-657"></span></p>
<p>In this document I use Debian Etch 4.0 for all nodes. Therefore the setup might differ a bit for other distributions. The two data nodes were x64 to use all of the 8GB RAM. Servers were compiled from source so you should be able to make it running on any platform. The MySQL version I use in this setup is 5.1.24-rc. It&#8217;s a release candidate, but I wanted to use 5.1 to take advantage of Memory-Disk Based tables.</p>
<p>Beginning with MySQL 5.1.6, it is possible to store the non-indexed columns of NDB tables on disk, rather than in RAM as with previous versions of MySQL Cluster.[More here]</p>
<p>This howto is just a scratch to make it running, for many of you I am suggesting to read some off docs from MySQL page to be prepared to how manage the whole cluster and always know whats going on.</p>
<p>This document comes without warranty of any kind! Bare in mind you need to make tests and prepare your databases before using it in production mode.</p>
<p><a href="http://www.howtoforge.com/setting-up-a-loadbalanced-mysql-cluster-with-mysql5.1">http://www.howtoforge.com/setting-up-a-loadbalanced-mysql-cluster-with-mysql5.1</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/2009/04/set-loadbalanced-mysql-cluster-mysql-51/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Turbo charging MySQL by setting up the query cache</title>
		<link>http://wiredgorilla.com.au/2009/03/turbo-charging-mysql-setting-query-cache/</link>
		<comments>http://wiredgorilla.com.au/2009/03/turbo-charging-mysql-setting-query-cache/#comments</comments>
		<pubDate>Fri, 27 Mar 2009 12:06:06 +0000</pubDate>
		<dc:creator>wiredgorilla</dc:creator>
				<category><![CDATA[Linux Tutorials]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[Techno Babble]]></category>

		<guid isPermaLink="false">http://wiredgorilla.com/?p=532</guid>
		<description><![CDATA[To make sure MySQL uses the query cache, there are a few variables you need to set in the configuration file . Usually its my.cnf or my.ini so check on your server with the shell command locate , in our case we are running on a CentOS 5.2  distro and to its my.cnf located in


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[<p>To make sure MySQL uses the query cache, there are a few variables you need to set in the configuration file . Usually its my.cnf or my.ini so check on your server with the shell command locate , in our case we are running on a CentOS 5.2  distro and to its my.cnf located in /etc so we opened it by using :   <span style="color: #ff0000;">nano /etc/my.cnf </span></p>
<p><span id="more-532"></span></p>
<div>First, is the query_cache_type. There are three possible settings: 0 (for off, do not use), 1 (for on, cache queries) and 2 (on demand). To ensure it is always on, place:<em></em></div>
<div><span style="color: #ff0000;"><em>query-cache-type = 1</em></span></div>
<div>in the configuration file.</div>
<div>The query_cache_type is set to ON now. However, there is one more to set, and that is the query_cache_size. If set to 0 (the default), the cache will be disabled. This variable determines the memory, in bytes, used for the query cache. For our purposes, we will set it to 20 MB:</div>
<div><span style="color: #ff0000;"><em>query-cache-size = 20M</em></span></div>
<div>Hope that helped a little <img src='http://wiredgorilla.com.au/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>And if you want to check out whats happening in the mySql cache just run this comand<br />
<em><br />
<span style="color: #ff0000;">mysql -e &#8220;SHOW STATUS LIKE &#8216;%qcache%&#8217;;&#8221;</span><br />
</em></div>


<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/2009/03/turbo-charging-mysql-setting-query-cache/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Moving mySQL DBs between servers</title>
		<link>http://wiredgorilla.com.au/2009/03/moving-mysql-dbs-servers/</link>
		<comments>http://wiredgorilla.com.au/2009/03/moving-mysql-dbs-servers/#comments</comments>
		<pubDate>Fri, 27 Mar 2009 12:02:59 +0000</pubDate>
		<dc:creator>wiredgorilla</dc:creator>
				<category><![CDATA[Linux Tutorials]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[Techno Babble]]></category>

		<guid isPermaLink="false">http://wiredgorilla.com/?p=530</guid>
		<description><![CDATA[Moving mySQL DBs from one server to another: mysqldump -uUSER -pPASSWORD txp_database &#62; txp_database.sql puts the entire thing in one nicely portable text file. on a new server it takes mysql -uUSER -pPASSWORD txp_database &#60; txp_database.sql to import it. Related posts:Linux Server Type: Restoring MySQL SimLink. If you&#8217;re unable to restart mysqld and troubleshooting 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[<p>Moving mySQL DBs from one server to another:</p>
<p><span style="color: #ff0000;">mysqldump -uUSER -pPASSWORD txp_database &gt; txp_database.sql </span></p>
<p>puts the entire thing in one nicely portable text file.</p>
<p>on a new server it takes</p>
<p><span style="color: #ff0000;">mysql -uUSER -pPASSWORD txp_database &lt; txp_database.sql </span></p>
<p>to import it.</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/2009/03/moving-mysql-dbs-servers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Taking backup of mysql database using cron</title>
		<link>http://wiredgorilla.com.au/2009/03/backup-mysql-database-cron/</link>
		<comments>http://wiredgorilla.com.au/2009/03/backup-mysql-database-cron/#comments</comments>
		<pubDate>Fri, 27 Mar 2009 11:56:38 +0000</pubDate>
		<dc:creator>wiredgorilla</dc:creator>
				<category><![CDATA[Linux Tutorials]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[Techno Babble]]></category>

		<guid isPermaLink="false">http://wiredgorilla.com/?p=522</guid>
		<description><![CDATA[Taking backup of mysql database using cron Create a file called database_backup.sh and also an empty directory called mysql_backup. The database_backup.sh script should have the following info : &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;- #!/bin/sh date=`date &#8216;+%m-%d-%y&#8217;` mysqldump -u database_username -pdatabase_password database_name &#62; ~/mysql_backup/database_name.$date &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;- Run the script that performs the backup job. &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;- * 23 * * * your_userid


No related posts.]]></description>
			<content:encoded><![CDATA[<p>Taking backup of mysql database using cron</p>
<p>Create a file called database_backup.sh and also an empty directory called mysql_backup.  The database_backup.sh script should have the following info :</p>
<p><span id="more-522"></span></p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
#!/bin/sh</p>
<p>date=`date &#8216;+%m-%d-%y&#8217;`<br />
mysqldump -u database_username -pdatabase_password database_name &gt; ~/mysql_backup/database_name.$date<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</p>
<p>Run the script that performs the backup job.</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
* 23 * * * your_userid /path/to/backup/script<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</p>
<p>Set this script up to run every night, etc. as a cron job. It will save an    sql dump of your database every night in the mysql_backup.</p>


<p>No related posts.</p>]]></content:encoded>
			<wfw:commentRss>http://wiredgorilla.com.au/2009/03/backup-mysql-database-cron/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<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>
