<?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>SurlyJake &#187; MySQL</title>
	<atom:link href="http://www.surlyjake.com/category/mysql/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.surlyjake.com</link>
	<description></description>
	<lastBuildDate>Tue, 29 Jun 2010 21:27:08 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=abc</generator>
		<item>
		<title>Automysqlbackup.sh.2.5 on FreeBSD</title>
		<link>http://www.surlyjake.com/mysql/automysqlbackupsh25-on-freebsd/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=automysqlbackupsh25-on-freebsd</link>
		<comments>http://www.surlyjake.com/mysql/automysqlbackupsh25-on-freebsd/#comments</comments>
		<pubDate>Fri, 13 Mar 2009 18:38:27 +0000</pubDate>
		<dc:creator>jacob</dc:creator>
				<category><![CDATA[FreeBSD7]]></category>
		<category><![CDATA[MySQL]]></category>

		<guid isPermaLink="false">http://www.surlyjake.com/?p=309</guid>
		<description><![CDATA[Automysqlbackup is a great tool. It&#8217;s setup and configuration can be found at many other sites. When you try to run it out of the box, you will get something like this: ./automysqlbackup.sh.2.5: Command not found. To run it in FreeBSD, you need to edit a single line. Automysqlbackup.sh.2.5 is a bash script, and it [...]]]></description>
			<content:encoded><![CDATA[<p>Automysqlbackup is a great tool. It&#8217;s setup and configuration can be found at many other sites. When you try to run it out of the box, you will get something like this:</p>
<pre><code>./automysqlbackup.sh.2.5: Command not found.</code></pre>
<p>To run it in FreeBSD, you need to edit a single line. Automysqlbackup.sh.2.5 is a bash script, and it references the path &#8216;/bin/sh&#8217;. In freebsd, bash is installed at &#8216;/usr/local/bin/bash.&#8217; If you haven&#8217;t already, install bash:</p>
<pre><code>pkg_add -r bash</code></pre>
<p>Then all you have to do is edit automysqlbackup.sh.2.5. Look for</p>
<pre><code>#!/bin/bash</code></pre>
<p>and change it to</p>
<pre><code>#!/usr/local/bin/bash</code></pre>
<p>Now you should be able to launch it properly by running &#8216;./automysqlbackup.sh.2.5&#8242;. creating a symlink would probably work, but i like this better.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.surlyjake.com/mysql/automysqlbackupsh25-on-freebsd/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MySQL table storage engine (switching from MyIsam to InnoDB)</title>
		<link>http://www.surlyjake.com/mysql/mysql-table-storage-engine-switching-from-myisam-to-innodb/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=mysql-table-storage-engine-switching-from-myisam-to-innodb</link>
		<comments>http://www.surlyjake.com/mysql/mysql-table-storage-engine-switching-from-myisam-to-innodb/#comments</comments>
		<pubDate>Fri, 03 Oct 2008 04:14:56 +0000</pubDate>
		<dc:creator>jacob</dc:creator>
				<category><![CDATA[Debian Etch]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[engine]]></category>

		<guid isPermaLink="false">http://www.surlyjake.com/?p=58</guid>
		<description><![CDATA[I know I did this the hard way. there is a command that you can issue that will convert them on the fly. what I did was mysqldump the database, reinstall mysql(because of other reasons), and then edit the dump so that the line that specified the engine reads &#8220;ENGINE=INNODB&#8221; instead of &#8220;ENGINE=MyISAM&#8221;.Then I imported [...]]]></description>
			<content:encoded><![CDATA[<p>I know I did this the hard way. there is a command that you can issue that will convert them on the fly. what I did was mysqldump the database, reinstall mysql(because of other reasons), and then edit the dump so that the line that specified the engine reads &#8220;ENGINE=INNODB&#8221; instead of &#8220;ENGINE=MyISAM&#8221;.Then I imported the dump.</p>
<p>I was getting annoyed that when listing my tables in phpmyadmin,  it would show the list of tables in InnoDB (which is what i wanted), but then, when showing the summary at the bottom of the page, said &#8220;MyIsam&#8221;. I easily got rid of it by adding &#8220;default-storage-engine=InnoDB&#8221; to my &#8220;my.cnf&#8221; file.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.surlyjake.com/mysql/mysql-table-storage-engine-switching-from-myisam-to-innodb/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MySQL server &#8211;purge and reinstall</title>
		<link>http://www.surlyjake.com/mysql/mysql-server-purge-and-reinstall/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=mysql-server-purge-and-reinstall</link>
		<comments>http://www.surlyjake.com/mysql/mysql-server-purge-and-reinstall/#comments</comments>
		<pubDate>Fri, 03 Oct 2008 04:06:03 +0000</pubDate>
		<dc:creator>jacob</dc:creator>
				<category><![CDATA[Debian Etch]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[purge]]></category>
		<category><![CDATA[reinstall]]></category>

		<guid isPermaLink="false">http://www.surlyjake.com/?p=55</guid>
		<description><![CDATA[Screwed around for a bit. messed up MySQL. I decided to remove &#8211;purge, and start fresh. Unfortunately, the reinstall wouldn&#8217;t work. Long story short, i had to remove &#8220;mysql-server, mysql-server-5.0, and mysql-common&#8221;. when i ran this, it also pulled out other dependencies, but i just reinstalled them all. voila! worky.]]></description>
			<content:encoded><![CDATA[<p>Screwed around for a bit. messed up MySQL. I decided to remove &#8211;purge, and start fresh. Unfortunately, the reinstall wouldn&#8217;t work. Long story short, i had to remove &#8220;mysql-server, mysql-server-5.0, and mysql-common&#8221;. when i ran this, it also pulled out other dependencies, but i just reinstalled them all. voila! worky.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.surlyjake.com/mysql/mysql-server-purge-and-reinstall/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Uninstall MySQL 5 from Debian</title>
		<link>http://www.surlyjake.com/mysql/uninstall-mysql-5-from-debian/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=uninstall-mysql-5-from-debian</link>
		<comments>http://www.surlyjake.com/mysql/uninstall-mysql-5-from-debian/#comments</comments>
		<pubDate>Sat, 27 Sep 2008 14:12:32 +0000</pubDate>
		<dc:creator>jacob</dc:creator>
				<category><![CDATA[Debian Etch]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[Samba]]></category>
		<category><![CDATA[Zabbix]]></category>
		<category><![CDATA[apt]]></category>
		<category><![CDATA[Debian]]></category>

		<guid isPermaLink="false">http://www.surlyjake.com/?p=34</guid>
		<description><![CDATA[I completely. completely messed up MySQL. Badly. I wiped out the data directory (/var/lib/mysql in Debian) and the went to remove mysql &#8230; apt-get remove --purge mysql-server That only deleted something like 86K. dissapointing. It looks like &#8220;mysql-server&#8221; is a shortcut pointing to the latest version of the software. The real software is found  under [...]]]></description>
			<content:encoded><![CDATA[<p>I completely. <span style="text-decoration: underline;">completely </span>messed up MySQL. Badly. I wiped out the data directory (/var/lib/mysql in Debian) and the went to remove mysql &#8230;<br />
<code>apt-get remove --purge mysql-server<br />
</code><br />
That only deleted something like 86K. dissapointing. It looks like &#8220;mysql-server&#8221; is a shortcut pointing to the latest version of the software. The real software is found  under the name &#8220;mysql-server-50&#8243;. So what made it happen was:<br />
<code>apt-get remove --purge mysql-server*<br />
</code><br />
That&#8217;ll wipe out whatever mysql install is in place.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.surlyjake.com/mysql/uninstall-mysql-5-from-debian/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>FreeBSD MYSQL configuration</title>
		<link>http://www.surlyjake.com/mysql/freebsd-mysql-configuration/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=freebsd-mysql-configuration</link>
		<comments>http://www.surlyjake.com/mysql/freebsd-mysql-configuration/#comments</comments>
		<pubDate>Fri, 26 Sep 2008 23:27:49 +0000</pubDate>
		<dc:creator>jacob</dc:creator>
				<category><![CDATA[FreeBSD7]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[FreeBSD 7]]></category>

		<guid isPermaLink="false">http://www.surlyjake.com/?p=26</guid>
		<description><![CDATA[FreeBSD does not automatically include a default my.cnf for MySQL. Instead, a set of sample configuration files can be found under /usr/local/share/mysql. These configuration files include my-small.cnf, my-medium.cnf, my-large.cnf, my-innodb-heavy-4G, and my-huge.cnf. The appropriate file can be copied and used as a template configuration by performing the following actions: cd /usr/local/share/mysql/ cp /usr/local/share/mysq/mysql-large.cnf /etc/my.cnf /usr/local/etc/rc.d/mysql-server [...]]]></description>
			<content:encoded><![CDATA[<div class="storycontent">
<p>FreeBSD does not automatically include a default <code>my.cnf</code> for MySQL. Instead, a set of sample configuration files can be found under <code>/usr/local/share/mysql</code>. These configuration files include <code>my-small.cnf</code>, <code>my-medium.cnf</code>, <code>my-large.cnf</code>, <code>my-innodb-heavy-4G</code>, and <code>my-huge.cnf</code>. The appropriate file can be copied and used as a template configuration by performing the following actions:<br />
<code>cd /usr/local/share/mysql/<br />
cp /usr/local/share/mysq/mysql-large.cnf /etc/my.cnf<br />
/usr/local/etc/rc.d/mysql-server restart</code></p>
<p>thanks to <a href="http://www.barik.net/archive/2008/05/26/114616/" target="_blank">http://www.barik.net/archive/2008/05/26/114616/</a> for the tip.</div>
]]></content:encoded>
			<wfw:commentRss>http://www.surlyjake.com/mysql/freebsd-mysql-configuration/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>what not to do in MySQL&#8230; and how to pick up the pieces</title>
		<link>http://www.surlyjake.com/mysql/what-not-to-do-in-mysql-and-how-to-pick-up-the-pieces/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=what-not-to-do-in-mysql-and-how-to-pick-up-the-pieces</link>
		<comments>http://www.surlyjake.com/mysql/what-not-to-do-in-mysql-and-how-to-pick-up-the-pieces/#comments</comments>
		<pubDate>Wed, 17 Sep 2008 03:31:13 +0000</pubDate>
		<dc:creator>jacob</dc:creator>
				<category><![CDATA[FreeBSD7]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[FreeBSD 7]]></category>
		<category><![CDATA[recovery]]></category>

		<guid isPermaLink="false">http://www.surlyjake.com/?p=14</guid>
		<description><![CDATA[note to self&#8230; do NOT kill mysql processes from phpmyadmin&#8217;s control panel and force mysql to quit. Bad things happen. In this case, mysql wouldnt start again. InnoDB&#8217;s indexes, binary logs, etc. were all out of sync. The 20 page log explaining all the ways the DB couldn&#8217;t start is located in the DB&#8217;s data [...]]]></description>
			<content:encoded><![CDATA[<p>note to self&#8230; do NOT kill mysql processes from phpmyadmin&#8217;s control panel and force mysql to quit. Bad things happen. In this case, mysql wouldnt start again. InnoDB&#8217;s indexes, binary logs, etc. were all out of sync. The 20 page log explaining all the ways the DB couldn&#8217;t start is located in the DB&#8217;s data dir, which in my case was in /dbdisks/&lt;hostname&gt;.err.</p>
<p>To tell mysql to pick up the messy pieces and throw up whats left of your data, edit or create /etc/my.cnf and add this little line to the &#8220;[mysqld]&#8221; section:</p>
<p><code>innodb_force_recovery = 3<br />
</code></p>
<p>The command is talked aboot <a href="http://dev.mysql.com/doc/refman/5.0/en/forcing-recovery.html" target="_blank">here</a> the number is btw 1 and 6. bigger the number, the more drastic and desperate it is. I tried 4, and it pulled the tables with no data. 1 gave me nothing. but 3 let me start and mysqldump my database.</p>
<p><code>mysqldump -u root -p &lt;dbname &gt; /path/to/.sql/file<br />
</code></p>
<p>so once the dump was completed, i moved the db data directory, commented out the &#8220;innodb_force_recovery&#8221; line, and restarted the computer. At restart the db data dir was re-created by mysql. fresh and clean. this deletes EVERYTHING. even users. re-import the data with</p>
<p><code>mysql -u root &lt;dbname&gt; &lt; /path/to/.sql/file<br />
</code></p>
<p>go ahead and create the users needed, and set root password again. There you go.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.surlyjake.com/mysql/what-not-to-do-in-mysql-and-how-to-pick-up-the-pieces/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->