<?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>FarmSoft Studios Scratchpad &#187; MySQL</title>
	<atom:link href="http://scratchpad.farmsoftstudios.com/category/mysql/feed/" rel="self" type="application/rss+xml" />
	<link>http://scratchpad.farmsoftstudios.com</link>
	<description>What We're Thinking About Right Now...</description>
	<lastBuildDate>Tue, 04 May 2010 16:10:20 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>MySQL and Snow Leopard (Mac OS X, 10.6.x)</title>
		<link>http://scratchpad.farmsoftstudios.com/2010/01/apple-computer/mysql-and-snow-leopard-mac-os-x-10-6-x/</link>
		<comments>http://scratchpad.farmsoftstudios.com/2010/01/apple-computer/mysql-and-snow-leopard-mac-os-x-10-6-x/#comments</comments>
		<pubDate>Fri, 08 Jan 2010 14:19:46 +0000</pubDate>
		<dc:creator>FarmSoft Studios</dc:creator>
				<category><![CDATA[Apple Computer]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[Apple]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[OS X]]></category>
		<category><![CDATA[Snow Leopard]]></category>

		<guid isPermaLink="false">http://scratchpad.farmsoftstudios.com/?p=181</guid>
		<description><![CDATA[After upgrading to Snow Leopard, the symlink was lost in /usr/local cd /usr/local sudo ln -s mysql-5.1.37-osx10.5-x86_64/ mysql Simply run that in the Terminal, and you should be all set.]]></description>
			<content:encoded><![CDATA[<p>After upgrading to Snow Leopard, the symlink was lost in /usr/local</p>
<p><code>cd /usr/local<br />
sudo ln -s mysql-5.1.37-osx10.5-x86_64/ mysql</code><br />
Simply run that in the Terminal, and you should be all set.</p>
]]></content:encoded>
			<wfw:commentRss>http://scratchpad.farmsoftstudios.com/2010/01/apple-computer/mysql-and-snow-leopard-mac-os-x-10-6-x/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MySQL Table Is Marked As Crashed and Should Be Repaired</title>
		<link>http://scratchpad.farmsoftstudios.com/2009/06/linux/mysql-table-is-marked-as-crashed-and-should-be-repaired/</link>
		<comments>http://scratchpad.farmsoftstudios.com/2009/06/linux/mysql-table-is-marked-as-crashed-and-should-be-repaired/#comments</comments>
		<pubDate>Fri, 19 Jun 2009 00:10:46 +0000</pubDate>
		<dc:creator>FarmSoft Studios</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[MySQL]]></category>

		<guid isPermaLink="false">http://scratchpad.farmsoftstudios.com/?p=157</guid>
		<description><![CDATA[I was greeted by the following error this evening from within my SugarCRM instance: MySQL error 1194: Table 'contacts' is marked as crashed and should be repaired So this is what I did to fix it: [root@crm ~]# mysql -p Enter password: ******** Welcome to the MySQL monitor. Commands end with ; or \g. mysql> [...]]]></description>
			<content:encoded><![CDATA[<p>I was greeted by the following error this evening from within my SugarCRM instance:</p>
<pre>MySQL error 1194: Table 'contacts' is marked as crashed and should be repaired</pre>
<p>So this is what I did to fix it:</p>
<pre>
[root@crm ~]# mysql -p
Enter password: ********
Welcome to the MySQL monitor.  Commands end with ; or \g.

mysql> use sugarcrm
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A

Database changed
mysql> CHECK TABLE contacts;
+-------------------+-------+----------+-----------------------------+
| Table             | Op    | Msg_type | Msg_text                    |
+-------------------+-------+----------+-----------------------------+
| sugarcrm.contacts | check | error    | Found wrong record at 73544 |
| sugarcrm.contacts | check | error    | Corrupt                     |
+-------------------+-------+----------+-----------------------------+
2 rows in set (0.18 sec)

mysql> REPAIR TABLE contacts;
+-------------------+--------+----------+-----------------------------------------------------+
| Table             | Op     | Msg_type | Msg_text                                            |
+-------------------+--------+----------+-----------------------------------------------------+
| sugarcrm.contacts | repair | info     | Key 1 - Found wrong stored record at 73544          |
| sugarcrm.contacts | repair | info     | Found block with too small length at 78096; Skipped |
| sugarcrm.contacts | repair | warning  | Number of rows changed from 892 to 877              |
| sugarcrm.contacts | repair | status   | OK                                                  |
+-------------------+--------+----------+-----------------------------------------------------+
4 rows in set (0.26 sec)
</pre>
]]></content:encoded>
			<wfw:commentRss>http://scratchpad.farmsoftstudios.com/2009/06/linux/mysql-table-is-marked-as-crashed-and-should-be-repaired/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Sorting Multiple Columns With MySQL</title>
		<link>http://scratchpad.farmsoftstudios.com/2009/06/web-design/sorting-multiple-columns-with-mysql/</link>
		<comments>http://scratchpad.farmsoftstudios.com/2009/06/web-design/sorting-multiple-columns-with-mysql/#comments</comments>
		<pubDate>Thu, 18 Jun 2009 15:57:13 +0000</pubDate>
		<dc:creator>FarmSoft Studios</dc:creator>
				<category><![CDATA[MySQL]]></category>
		<category><![CDATA[Web Design]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[database]]></category>

		<guid isPermaLink="false">http://scratchpad.farmsoftstudios.com/?p=155</guid>
		<description><![CDATA[Ever wanted to sort your MySQL results by several columns? SELECT * FROM orderspecs ORDER BY height, depth, width; Now what if you want the columns to have different sort orders in the sub-sorted columns? No problem. Just specify the order for each column. SELECT * FROM orderspecs ORDER BY height DESC, depth ASC, width [...]]]></description>
			<content:encoded><![CDATA[<p>Ever wanted to sort your MySQL results by several columns?</p>
<pre>SELECT * FROM orderspecs ORDER BY height, depth, width;</pre>
<p>Now what if you want the columns to have different sort orders in the sub-sorted columns?  No problem.  Just specify the order for each column.</p>
<pre>SELECT * FROM orderspecs ORDER BY height DESC, depth ASC, width DESC;</pre>
]]></content:encoded>
			<wfw:commentRss>http://scratchpad.farmsoftstudios.com/2009/06/web-design/sorting-multiple-columns-with-mysql/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
