Noob on Mac OS w/ MySQL Problem....

Hello everyone!

I'm very much a noob (to Ruby, Rails, and even the Terminal) so bear with me. I got the following error message while trying to following a simple blog creation tutorial. Everything was going fine until I typed in...

rake db:create

which brought the error message:

Are you able to run the MySQL monitor?

If not then…

install MySQL on your system.

Dear All,

I'm having difficulites after installing my rails. The installation is a success, i installed several mandatory gems,

After creating 1 controller and 1 view (.rhtml), the browser gives: "We're sorry, but something went wrong. We've been notified about this issue and we'll take a look at it shortly." everytime i browse to the page. But the localhost:3000 page looks ok, except when I clicked on "About your application’s environment" link. It gives the same error.

I google around and found out that i must install the database first. I have installed MySQL previousely, and it active as a service, and I also have XAMPP running. So I browse around for mysql gem, and install all of its dependencies. So far here's what i have installed, 14 gems: actionmailer, actionpack, activerecord, activeresource, activesupport, gemcutter, hoe, json_pure, rack, rails, rake, rake-compiler, rubyforge, rubygems. I also modified the database.yml to this   adapter: mysql   database: testrb_test   username: root   password: root   host: localhost

All the same setting for development, test, and production setting. But when i tries to install mysql.gem (gem install mysql), it always failed: "ERROR: Failed to build gem native extension. extconf.rb failed Could not create makefile, probably lack of necessary libraries and/or headers

Where did i go wrong?

FYI, i'm running on winxp, with mysql 5.

Thanks!

Regards,

Arga