<?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>Lee Munroe &#187; mysql</title> <atom:link href="http://www.leemunroe.com/tags/mysql/feed/" rel="self" type="application/rss+xml" /><link>http://www.leemunroe.com</link> <description>User Experience and Web Interface Designer Lee Munroe</description> <lastBuildDate>Thu, 09 Feb 2012 02:44:16 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3</generator> <item><title>How to get MySQL, Ruby, RVM and Rails working on Snow Leopard</title><link>http://www.leemunroe.com/snow-leopard-mysql-ruby-rails/</link> <comments>http://www.leemunroe.com/snow-leopard-mysql-ruby-rails/#comments</comments> <pubDate>Tue, 11 Jan 2011 16:27:21 +0000</pubDate> <dc:creator>Lee</dc:creator> <category><![CDATA[Web Design]]></category> <category><![CDATA[Apple]]></category> <category><![CDATA[leopard]]></category> <category><![CDATA[mac]]></category> <category><![CDATA[mysql]]></category> <category><![CDATA[osx]]></category> <category><![CDATA[rails]]></category> <category><![CDATA[ruby]]></category> <category><![CDATA[rvm]]></category> <category><![CDATA[snow leopard]]></category><guid
isPermaLink="false">http://www.leemunroe.com/?p=2226</guid> <description><![CDATA[For over a year now I refused to upgrade from Leopard to Snow Leopard on Mac OSX. I knew it wouldn&#8217;t be a simple straight forward procedure. So this past&#8230;<html><body><h1>400 Bad request</h1> Your browser sent an invalid request.</body></html> ]]></description> <content:encoded><![CDATA[<p>For over a year now <strong>I refused to upgrade</strong> from Leopard to Snow Leopard on Mac OSX. I knew it wouldn&#8217;t be a simple straight forward procedure.</p><p>So this past Christmas, when I had some time to spare, I took the plunge and of course, as expected, not everything worked after.</p><p><strong>It took me a few days to get everything back up and running</strong> so I&#8217;ve noted down some things below to help any other designers/developers who have still to make the jump.</p><p><span
id="more-2226"></span></p><h4>Backup your development databases</h4><p>Should go without saying but here&#8217;s your reminder anyway. <strong>Backup everything.</strong></p><p>Specifically, back up your local databases. For handiness, <strong>backup/copy your MySQL databases (located under /usr/local/mysql/data)</strong> to your desktop. You&#8217;ll want to use these shortly after upgrading.</p><h5>Sidenote: How to open /usr/ in Finder</h5><p>I&#8217;m usually lost when it comes to working in Terminal. I prefer to see folders in Finder.</p><p>In case you didn&#8217;t know how to locate and open any hidden folders like /usr/ do the following:</p><ol><li>Open Terminal.app</li><li>Type: cd /usr/</li><li>Type: open .</li></ol><p>Simple when you know how.</p><h4>Install/Upgrade to Snow Leopard</h4><p>Follow the on screen instructions. Should be simple enough and takes a little less than 1 hour.</p><h4>Install MySQL</h4><p>Go to <a
href="http://www.mysql.com/downloads/mysql/">MySQL.com</a> and download the latest version of MySQL.</p><p>Just to confuse you there are a few options. Go for the <strong>DMG Archive</strong>. You&#8217;re most likely looking for the <strong>64-bit </strong>but <a
href="http://support.apple.com/kb/ht3696">check first to make sure</a>.</p><p>Once downloaded, install MySQL (along with the Startup Item and Preference Pane).</p><h4>Restore your development databases</h4><p>At this point we have MySQL installed but we don&#8217;t have any data.</p><p>You want to copy the data folder that we previously backed up into your new MySQL folder.</p><p>I found this link helpful from Corey. <a
href="http://www.idolhands.com/application-and-web-development/sql-and-databases/restore-rails-development-databases-after-snow-leopard-and-mysql-upgrade">Restore development databases after Snow Leopard upgrade</a>.</p><p>In short:</p><ol><li>Turn off MySQL (use the Preference Pane)</li><li>Replace /usr/local/mysql/data with your backed up data folder</li><li>Turn on MySQL</li></ol><h4>MySQL is nearly all set</h4><p>At this point I tried one of my PHP sites locally however <strong>it didn&#8217;t work</strong>.</p><p>Thanks to <a
href="http://www.artin.org/geekblog/2010/12/installing-mysql-5-5-8-on-mac-os-x-snow-leopard/">Aaron&#8217;s solution here</a>, I was able to get it up and running.</p><ol><li>Open Terminal.app</li><li>Type: sudo /Applications/TextEdit.app/Contents/MacOS/TextEdit /usr/local/mysql/support-files/mysql.server</li><li>Find the line starting with basedir and datadir and replace with:<br
/>basedir=/usr/local/mysql<br
/>datadir=/usr/local/mysql/data</li><li>Save the file</li><li>Start MySQL using the System Preferences pane button.</li></ol><h4>Installing Ruby, rvm and Rails</h4><p><strong>This is where I got completely lost</strong> and wasted a couple of days trying to troubleshoot and get things up and running.</p><p>I installed rvm, ruby and the rails gem but couldn&#8217;t get any local applications to run for one reason or another (usually some sort of gem problem).</p><p>In the end I had to give in and ask for help from the talented <a
href="http://davidjrice.co.uk/">Mr David Rice</a>, whose conclusion was to do a clean install.</p><ol><li><a
href="http://stackoverflow.com/questions/3558656/how-to-remove-rvm-ruby-version-manager-from-my-system">Remove RVM</a></li><li><a
href="http://punctuatedproductivity.com/2007/11/01/uninstalling-ruby-installed-by-source-on-os-x/#removing-ruby">Remove Ruby</a></li><li><a
href="http://developer.apple.com/technologies/xcode.html">Install Xcode</a> if you haven&#8217;t already done so (p.s. it&#8217;s a big ass file)</li><li><a
href="http://www.cowboycoded.com/2010/12/04/setting-up-rails-3-on-mac-osx-snow-leopard-10-6-4/">Install git, RVM, Ruby and Rails</a></li></ol><p>Hopefully this is you up and running.</p><h4>Should it be this difficult?</h4><p>I&#8217;m not a developer so I was lost quite a bit along the way. Running commands in Terminal is a task in itself.</p><p>It seems to be different for everyone so the process above might not be exactly the same for you. And if you&#8217;re a developer you might be saying to yourself &#8220;Why did he need to do that?&#8221;. <strong>Tell me if anything above looks odd.</strong></p><p><strong><em>If someone can create a button that once clicked, installs everything you need (in all the right places) to get a Rails project running locally, that would be great thanks.</em></strong></p><p>Big thanks to David Rice for his help and to all the websites mentioned above. <a
href="http://stackoverflow.com/">Stackoverflow</a> is your friend in situations like this.</p> ]]></content:encoded> <wfw:commentRss>http://www.leemunroe.com/snow-leopard-mysql-ruby-rails/feed/</wfw:commentRss> <slash:comments>3</slash:comments> </item> <item><title>How to connect to a MAMP MySQL database using CocoaMySQL</title><link>http://www.leemunroe.com/how-to-connect-to-a-mamp-mysql-database-using-cocoamysql/</link> <comments>http://www.leemunroe.com/how-to-connect-to-a-mamp-mysql-database-using-cocoamysql/#comments</comments> <pubDate>Thu, 16 Oct 2008 11:00:00 +0000</pubDate> <dc:creator>Lee</dc:creator> <category><![CDATA[Web Design]]></category> <category><![CDATA[Apple]]></category> <category><![CDATA[mac]]></category> <category><![CDATA[mysql]]></category><guid
isPermaLink="false">http://www.leemunroe.com/?p=296</guid> <description><![CDATA[I came across this problem when I converted to a Mac and I was trying to connect to a MySQL database on MAMP using CocoaMySQL. CocoaMySQL wasn&#8217;t able to connect&#8230;]]></description> <content:encoded><![CDATA[<p>I came across this problem when I converted to a Mac and I was trying to connect to a MySQL database on MAMP using CocoaMySQL. CocoaMySQL wasn&#8217;t able to connect to the database. Thought the solution may be useful to others.</p><p><span
id="more-296"></span></p><h4>Settings</h4><p>Host:localhost<br
/> User:root<br
/> Password:root</p><p>If you try to connect now you may get the following error:<br
/> <strong>Unable to connect to host localhost.<br
/> Be sure that the address is correct and that you have the necessary privileges.<br
/> MySQL said: Access denied for user &#8216;root&#8217;@'localhost&#8217; (using password: YES)</strong></p><div
class="blog-img"><img
src="http://www.leemunroe.com/wp-content/uploads/picture-91.png" alt="CocoaMySQL error" border="0" width="410" height="151" /></div><h4>Solution</h4><p>So here&#8217;s the extra bit. Enter the following in the <strong>socket</strong> field:<br
/> <strong>/applications/mamp/tmp/mysql/mysql.sock</strong></p><div
class="blog-img"><img
src="http://www.leemunroe.com/wp-content/uploads/picture-30.png" alt="Picture 30.png" border="0" width="261" height="346" /></div><p>Happy days!</p> ]]></content:encoded> <wfw:commentRss>http://www.leemunroe.com/how-to-connect-to-a-mamp-mysql-database-using-cocoamysql/feed/</wfw:commentRss> <slash:comments>8</slash:comments> </item> </channel> </rss>
<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: basic (User agent is rejected)
Database Caching 22/30 queries in 0.073 seconds using disk: basic

Served from: www.leemunroe.com @ 2012-02-09 13:37:45 -->
