You are currently browsing the tag archive for the 'mysql' tag.

I’m too lazy to build from source if there’s not a good reason, and for running MySQL on OS X, I’ve yet to come across a good reason. So, I just use the MySQL Community downloads. Over the weekend I upgraded from 5.0.37 to the latest 5.1 download, because I was hard up against a MySQL bug that was fixed in later builds.

Unfortunately, while just running the installer for 5.1 worked great, it pointed the new server at a brand new set of databases - orphaning the couple of dozen databases I was working with. This was Not Good. The fix comes in two parts.

First, create /etc/my.cnf, with a single entry pointing to the old database files:

[mysqld]
datadir=/usr/local/mysql-5.0.37-osx10.4-i686/data

Second, tell MySQL to upgrade the files:

sudo mysql_upgrade -u root

So far October is shaping up to be a pretty interesting month.

I think the ActiveRecord Associations Guide I wrote may actually be finished.

  • Dynamic Rails Error Help - Making the default validation messages more useful with a bit of javascript.
  • Exceptional - This online error-tracker for Rails apps is now in open beta.
  • Is Your Rails Application Safe? - If you’re inadvertently allowing mass assignment, probably not.
  • MysqlTableSyncer - Command-line tool to synch up two MySQL tables.
  • turl - My contribution to a little scripting fest on Twitter yesterday. If you have FF3 + Ubiquity, you can use “turl <userid>” to go straight to a Twitter user’s web site.

This is probably a good time to mention that I’ve done a bunch more cleanup on the google_analytics plugin.

Thanks to the FiveRuns folks for featuring me in their TakeFive interview series, and welcome to new readers.

I need to get some MySQL ETL going to build a datamart. Looks like I can choose from Clover.ETL, Enhydra Octopus, or Apatar. Anyone used any of those?

I find that I’m not in any particular hurry to upgrade to WordPress 2.5.

I’m hoping some renewed energy and inspiration comes out of somewhere today, because I sure didn’t have any this weekend.

As I ease into the weekend I’m contemplating whether I can cram in a bit more work each day. I think not, but there is just so much new stuff to learn…

  • Skitch - Fun little graphics and photo-sharing app for the Mac that’s just gone into public beta.
  •  Navicat 7.1.0 - My tool of choice for MySQL on OS X has just had another little version bump.

Had a great deal of fun the last couple of days figuring out how to deploy a Rails site to a client’s client’s xserve.

I spent much of yesterday doing an archive & install on OS X 10.5 on my main dev box, then reinstalling all the gems I use. Took a while to get everything set up, but it was worth it to not have two installs of ruby and two battling sets of gems. I think.

  • Rails 2.0.2: Some new defaults and a few fixes - Here’s the official announcement of yesterday’s minor Rails release.
  • Rails 2.0.2 released, so what’s new? - Another take on the new features.
  • Sqliteman - With Sqlite3 being suddenly the default Rails database (as of Rails 2.0.2), I spent some time looking around for Sqllite GUIs that work under OS X. (Yeah, I’m a wimp that way). This one has the advantage of being free, though it’s not real well-organized and has that Qt look to it.
  • RazorSQL - Commercial database query tool that claims Sqlite compatibility via JDBC. Haven’t tried it.
  • SQLite Manager 0.2.11 - Sqlite database tool implemented as a Firefox add-on. Actually not bad.
  • What’s Coming in Instant Rails 2.0 and Beyond - The Road Map - Plans from the new project maintainer.
  • Installing ruby mysql gem in OSX 10.5 - I decided I could do without building everything from source this time around. MySQL was the trickiest to get cooking from a download & gem install.
  • Ruport 1.4 Preview Release - If you’re using Ruport for reporting you probably want to have a look at this.
  • RSpec Textmate Bundle errors - I had a good deal of trouble getting RSpec to work correctly within TextMate. This thread describes the symptom, but the fixes there did not work for me. Ultimately I had to checkout the RSpec trunk svn, build that, and symlink the resulting TextMate bundle in to make sure everything was synched.
  • Setting up autotest to use Growl - A nice little extra if you’re doing continuous testing.
  • Bazaar - Distributed version control system with an easy migration path from subversion.

I’ve actually spent a couple of days doing paid work on a Rails application. I feel all accomplished and stuff. Of course two thirds of the time has been off the clock as I scurry around researching things, but it’s a start.

Yeah, I’ve been MIA for a few days. Life has been pretty hectic. Here are a few liks to make up for that.

Lightning Admin for Postgresql and MySQL gives you a tabbed workspace for two of the major open source databases. Looks interesting, and $19.99 is a reasonable price, but I’m trying not to install any more Windows-only applications these days.

This morning I had to hunt down Copying a MySQL Database From One Machine to Another in the course of moving a Rails app from a development server to a production server, as I didn’t feel like re-entering a bunch of data (and I hadn’t used data migrations to put the data in the database in the first place).

This just goes to remind me of two things about this career transition:

  1. There are a zillion things that I know how to do in the Microsoft universe (like copying databases from one server to another) that I need to relearn as I move sideways to a world of other software. This is a cost above and beyond whatever I spend on new hardware and software and directly learning my new core competency.
  2. Fortunately, it’s all out on the net somewhere, and I’m darned good at hunting things down quickly.