<?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>ph-lee &#187; mysql</title>
	<atom:link href="http://www.ph-lee.com/tag/mysql/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ph-lee.com</link>
	<description>aspire to inspire before you expire</description>
	<lastBuildDate>Sat, 29 May 2010 19:11:03 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Installing mysql on Mac Snow Leopard</title>
		<link>http://www.ph-lee.com/2009/09/18/installing-mysql-on-mac-snow-leopard/</link>
		<comments>http://www.ph-lee.com/2009/09/18/installing-mysql-on-mac-snow-leopard/#comments</comments>
		<pubDate>Fri, 18 Sep 2009 17:11:59 +0000</pubDate>
		<dc:creator>ph-lee</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[database.yml]]></category>
		<category><![CDATA[mac]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[ror]]></category>
		<category><![CDATA[snow leopard]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.ph-lee.com/?p=197</guid>
		<description><![CDATA[This articles is regarding Mac OS X 10.6 with mysql 5.1.37.
I followed this article at hivelogic.com which required compiling mysql from source. It mostly worked with a few hitches which I&#8217;d like to share.
After following the article and attempting to run my rails app the first problem I hit was&#8230;
uninitialized constant MysqlCompat::MysqlRes
this problem seemed to [...]]]></description>
			<content:encoded><![CDATA[<p>This articles is regarding Mac OS X 10.6 with mysql 5.1.37.</p>
<p>I followed <a href="http://hivelogic.com/articles/compiling-mysql-on-snow-leopard/">this article at hivelogic.com</a> which required compiling mysql from source. It mostly worked with a few hitches which I&#8217;d like to share.</p>
<p>After following the article and attempting to run my rails app the first problem I hit was&#8230;</p>
<p><code>uninitialized constant MysqlCompat::MysqlRes</code></p>
<p>this problem seemed to be that you need to specify the atchitecture as 64-bit when installing the mysql gem. So run the below command intead when install the mysql gem&#8230;</p>
<p><code>sudo env ARCHFLAGS="-arch x86_64" gem install mysql -- --with-mysql-<br />
config=/usr/local/mysql/bin/mysql_config</code></p>
<p>Or if you already installed the gem just re-install with this command. The next problem was the following&#8230;</p>
<p><code>Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)</code></p>
<p>I&#8217;d move a project from ubuntu onto the mac I couldn&#8217;t find the mysql socket to use as it was specifying the wrong location. On the mac the file can be found at</p>
<p><code>/tmp/mysql.sock</code></p>
<p>So you&#8217;ll need to modify your database.yml file accordingly to point to this location</p>
<p>Hope this helps.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ph-lee.com/2009/09/18/installing-mysql-on-mac-snow-leopard/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Gotcha : Mysql::Error: Unknown database &#039;application_name_test&#039;  /usr/lib/ruby/1.8/monitor.rb:242:in `synchronize&#039;</title>
		<link>http://www.ph-lee.com/2009/07/19/gotcha-mysqlerror-unknown-database-application_name_test-usrlibruby18monitorrb242in-synchronize/</link>
		<comments>http://www.ph-lee.com/2009/07/19/gotcha-mysqlerror-unknown-database-application_name_test-usrlibruby18monitorrb242in-synchronize/#comments</comments>
		<pubDate>Sun, 19 Jul 2009 18:03:11 +0000</pubDate>
		<dc:creator>ph-lee</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[gotcha]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[ror]]></category>
		<category><![CDATA[ruby]]></category>

		<guid isPermaLink="false">http://www.ph-lee.com/?p=146</guid>
		<description><![CDATA[After dealing with thisGotcha : Mysql::Error: Access denied for user ‘root’@&#8217;localhost’ you&#8217;ve hit another problem of&#8230;
This means rails is looking for the test database but can&#8217;t find it cause it&#8217;s not there. Simply got to mysql Query Browser or command line, whichever you prefer and create a new database/schema of your application_name followed by _test [...]]]></description>
			<content:encoded><![CDATA[<p>After dealing with this<a href="http://www.ph-lee.com/2009/07/19/gotcha-mysqlerror-access-denied-for-user-rootlocalhost-using-password-no-usrlibruby18monitorrb242in-synchronize/">Gotcha : Mysql::Error: Access denied for user ‘root’@&#8217;localhost’</a> you&#8217;ve hit another problem of&#8230;</p>
<script src="http://gist.github.com/149984.js"></script>
<p>This means rails is looking for the test database but can&#8217;t find it cause it&#8217;s not there. Simply got to mysql Query Browser or command line, whichever you prefer and create a new database/schema of your application_name followed by _test so for example</p>
<p><code>my_app_test</code></p>
<p>Theres no need to copy/clone the database structure a across. Rails will replicate the development database as the test database.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ph-lee.com/2009/07/19/gotcha-mysqlerror-unknown-database-application_name_test-usrlibruby18monitorrb242in-synchronize/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Gotcha : Mysql::Error: Access denied for user &#039;root&#039;@&#039;localhost&#039; (using password: NO) /usr/lib/ruby/1.8/monitor.rb:242:in `synchronize&#039;</title>
		<link>http://www.ph-lee.com/2009/07/19/gotcha-mysqlerror-access-denied-for-user-rootlocalhost-using-password-no-usrlibruby18monitorrb242in-synchronize/</link>
		<comments>http://www.ph-lee.com/2009/07/19/gotcha-mysqlerror-access-denied-for-user-rootlocalhost-using-password-no-usrlibruby18monitorrb242in-synchronize/#comments</comments>
		<pubDate>Sun, 19 Jul 2009 17:50:47 +0000</pubDate>
		<dc:creator>ph-lee</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[database.yml]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[gotcha]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[ror]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[test]]></category>

		<guid isPermaLink="false">http://www.ph-lee.com/?p=141</guid>
		<description><![CDATA[So you decided to run some tests on your new rails project and this error crops up&#8230;
Looks like you forget to configure the test database parameters in the configuration/database.yml file.
]]></description>
			<content:encoded><![CDATA[<p>So you decided to run some tests on your new rails project and this error crops up&#8230;</p>
<script src="http://gist.github.com/149980.js"></script>
<p>Looks like you forget to configure the test database parameters in the configuration/database.yml file.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ph-lee.com/2009/07/19/gotcha-mysqlerror-access-denied-for-user-rootlocalhost-using-password-no-usrlibruby18monitorrb242in-synchronize/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Troubleshooting : gem install mysql on Ubuntu</title>
		<link>http://www.ph-lee.com/2009/06/06/troubleshooting-gem-install-mysql-on-ubuntu/</link>
		<comments>http://www.ph-lee.com/2009/06/06/troubleshooting-gem-install-mysql-on-ubuntu/#comments</comments>
		<pubDate>Sat, 06 Jun 2009 14:51:05 +0000</pubDate>
		<dc:creator>ph-lee</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[gem]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[rails]]></category>
		<category><![CDATA[ruby]]></category>
		<category><![CDATA[troubleshooting]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[virtualbox]]></category>

		<guid isPermaLink="false">http://www.ph-lee.com/?p=65</guid>
		<description><![CDATA[Whilst deploying a VirtualBox of Ubuntu to act as a Ruby on Rails development server I hit several issues. One of which was installing the mysql gem with the command
sudo gem install mysql
Giving me the error of
With some googling I found the solution at mentalized.net needing to install ruby1.8-dev as it was missing in my [...]]]></description>
			<content:encoded><![CDATA[<p>Whilst deploying a <a href="http://www.virtualbox.org/">VirtualBox</a> of <a href="http://www.ubuntu.com/">Ubuntu</a> to act as a Ruby on Rails development server I hit several issues. One of which was installing the mysql gem with the command</p>
<p><code>sudo gem install mysql</code></p>
<p>Giving me the error of</p>
<script src="http://gist.github.com/124868.js"></script>
<p>With some googling I found the solution at <a href="http://mentalized.net/journal/2006/01/24/no_such_file_to_load_mkmf/">mentalized.net</a> needing to install ruby1.8-dev as it was missing in my case. To solve enter the following command&#8230;</p>
<p><code>sudo apt-get install ruby1.8-dev</code></p>
<p>That solved one problem but I hit another trying to install the mysql gem.</p>
<script src="http://gist.github.com/124865.js"></script>
<p>This one took more googling but eventually found <a href="http://www.codeweblog.com/gem-install-mysql-under-ubuntu-solution-error/">codeweblog</a> giving a solution. Again I was missing further dependent libraries in this case libmysqlclient15-dev. To install that enter the command&#8230;</p>
<p><code>sudo apt-get install libmysqlclient15-dev</code></p>
<p>Installing the mysql gem should now work.</p>
<p>Hope this helps.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ph-lee.com/2009/06/06/troubleshooting-gem-install-mysql-on-ubuntu/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
